debug: Change syslog priority mapping to match new log level macros
commit70b10f8f202ed81bf0a0a90e71faa61b8ed2c2b5
authorChristof Schmitt <cs@samba.org>
Fri, 5 Jun 2015 22:09:34 +0000 (5 15:09 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 10 Jun 2015 23:45:22 +0000 (11 01:45 +0200)
tree2a2e9b3b835abb1c72c6a70d7d20e228621d8ad3
parent50dc46506544b8a4ab2e64732c1998541a69f473
debug: Change syslog priority mapping to match new log level macros

This changes the mapping of internal log levels to syslog priorities to
match the previously defined helper macros. The idea is that this better
maps to the actual use of log levels in the Samba code.

unchanged
 log level     | priority
 0             | ERROR
 1             | WARNING
 2             | NOTICE

before
 log level     | priority
 3             | INFO
 4 and higher  | DEBUG

after
 log level     | priority
 3 to 5        | NOTICE
 6 to 9        | INFO
 10 and higher | DEBUG

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/util/debug.c