Commit 1d298cf1 authored by Devaev Maxim's avatar Devaev Maxim

Multiple log lines splits to separate entries

parent a7396265
...@@ -47,12 +47,12 @@ def log(message_type, message) : ...@@ -47,12 +47,12 @@ def log(message_type, message) :
( "\033[36mDetails\033[0m" if use_colors_flag else "Details" ), ( "\033[36mDetails\033[0m" if use_colors_flag else "Details" ),
"Debug" "Debug"
) )
message = "[ %s ]: %s" % (message_type_texts_list[message_type[0]], message)
print >> sys.stderr, const.MY_NAME, message for message_list_item in message.split("\n") :
message_list_item = "[ %s ]: %s" % (message_type_texts_list[message_type[0]], message_list_item)
if config.value(config.RUNTIME_SECTION, "use_syslog") : print >> sys.stderr, const.MY_NAME, message_list_item
syslog.syslog(message_type[1], message) if config.value(config.RUNTIME_SECTION, "use_syslog") :
syslog.syslog(message_type[1], message_list_item)
##### Public methods ##### ##### Public methods #####
......
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