Commit 0c468817 authored by Dominik Charousset's avatar Dominik Charousset

Fix build w/o logging

parent 3fc7be40
...@@ -321,6 +321,7 @@ logger::logger(actor_system& sys) : system_(sys) { ...@@ -321,6 +321,7 @@ logger::logger(actor_system& sys) : system_(sys) {
} }
void logger::init(actor_system_config& cfg) { void logger::init(actor_system_config& cfg) {
#if defined(CAF_LOG_LEVEL)
auto lvl_atom = cfg.logger_verbosity; auto lvl_atom = cfg.logger_verbosity;
switch (static_cast<uint64_t>(lvl_atom)) { switch (static_cast<uint64_t>(lvl_atom)) {
case error_log_lvl_atom::uint_value(): case error_log_lvl_atom::uint_value():
...@@ -342,6 +343,7 @@ void logger::init(actor_system_config& cfg) { ...@@ -342,6 +343,7 @@ void logger::init(actor_system_config& cfg) {
level_ = CAF_LOG_LEVEL; level_ = CAF_LOG_LEVEL;
} }
} }
#endif
} }
void logger::run() { void logger::run() {
......
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