Commit bd4d2ce3 authored by Dominik Charousset's avatar Dominik Charousset

Fix build w/o logging

parent 9860e195
...@@ -106,7 +106,7 @@ logger* get_current_logger() { ...@@ -106,7 +106,7 @@ logger* get_current_logger() {
#else // CAF_LOG_LEVEL #else // CAF_LOG_LEVEL
inline void current_logger_system(actor_system*) { inline void set_current_logger(logger*) {
// nop // nop
} }
...@@ -321,6 +321,7 @@ logger::logger(actor_system& sys) : system_(sys) { ...@@ -321,6 +321,7 @@ logger::logger(actor_system& sys) : system_(sys) {
} }
void logger::run() { void logger::run() {
#if defined(CAF_LOG_LEVEL)
auto f = system_.config().logger_filename; auto f = system_.config().logger_filename;
// Replace placeholders. // Replace placeholders.
const char pid[] = "[PID]"; const char pid[] = "[PID]";
...@@ -422,6 +423,7 @@ void logger::run() { ...@@ -422,6 +423,7 @@ void logger::run() {
__FILE__, __LINE__); __FILE__, __LINE__);
file << " EOF" << std::endl; file << " EOF" << std::endl;
file.close(); file.close();
#endif
} }
void logger::start() { void logger::start() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment