Skip to content

Commit

Permalink
ULogger console: using std::cerr by default to avoid ROS2 default buf…
Browse files Browse the repository at this point in the history
…fering on cout/printf.
  • Loading branch information
matlabbe committed Nov 30, 2024
1 parent 13bc3c5 commit 3eda219
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utilite/src/ULogger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <fstream>
#include <string>
#include <string.h>
#include <iostream>

#ifndef _WIN32
#include <sys/time.h>
Expand Down Expand Up @@ -93,7 +94,7 @@ public :
}
virtual void _writeStr(const char* msg)
{
printf("%s", msg);
std::cerr << msg;
}
};

Expand Down

0 comments on commit 3eda219

Please sign in to comment.