diff --git a/calexium_lib/net_services_protocols/logger_service.anubis b/calexium_lib/net_services_protocols/logger_service.anubis index b8f9736..d4c889a 100644 --- a/calexium_lib/net_services_protocols/logger_service.anubis +++ b/calexium_lib/net_services_protocols/logger_service.anubis @@ -61,21 +61,21 @@ define Bool )= if find_string(msg, "LogString") is { - failure then println("process_log can't find LogString");false, + failure then logError(log, "process_log can't find LogString");false, success(log_string) then if find_int32(msg, "Level") is { - failure then println("process_log can't find Level");false, + failure then logError(log, "process_log can't find Level");false, success(int_level) then if find_int32(msg, "Thread") is { - failure then println("process_log can't find Level");false, + failure then logError(log, "process_log can't find Level");false, success(thread_id) then with level = get_LogLevel_from_value(int_level), if level is logTrace then if find_string(msg, "LogMask") is { - failure then println("process_log can't find LogMask");false, + failure then logError(log, "process_log can't find LogMask");false, success(log_mask) then logTrace(log, logMask(log_mask), log_string, thread_id); true } else doLog(log, log_string, level, thread_id); true @@ -89,7 +89,7 @@ define Bool // logTrace then // if find_string(msg, "LogMask") is // { -// failure then println("process_log can't find LogMask");false, +// failure then logError(log, "process_log can't find LogMask");false, // success(log_mask) then logTrace(log, logMask(log_mask),log_string); true // } // } @@ -199,7 +199,7 @@ define (UDP_Socket, ByteArray, Truncation, Int32, Int32) -> One if *msg.what = _CXM_LOGGER_LOG then forget(process_log(logs, msg)) else - println("wrong message_received is not _CXM_LOGGER_LOG ") + println("LoggerService: wrong message_received. [" + to_hexa(*msg.what) + "] is not _CXM_LOGGER_LOG ") }. define One -- libgit2 0.21.4