Skip to content

Commit

Permalink
Allow disabling rosout file logging (to rosout.log)
Browse files Browse the repository at this point in the history
See issue ros#1380.
  • Loading branch information
yli-cpr committed May 1, 2018
1 parent 4c8b8f2 commit c9edf6a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/rosout/rosout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ class Rosout
{
agg_pub_.publish(msg);

bool disable_file_logging = false;
if (node_.getParamCached("/rosout/disable_file_logging", disable_file_logging) && disable_file_logging)
{
return;
}

std::stringstream ss;
ss << msg->header.stamp << " ";
switch (msg->level)
Expand Down

0 comments on commit c9edf6a

Please sign in to comment.