LogInit: rename "secure" to "info"
Calling this "secure" never made sense. Messages about client connects are just a small part of what gets logged as "secure", a.k.a. "info".
This commit is contained in:
parent
050adf6640
commit
3e0ceb12d5
|
@ -82,7 +82,7 @@ log_level <default, secure, or verbose>
|
|||
log levels are available:
|
||||
|
||||
- :samp:`default`: interesting informational messages
|
||||
- :samp:`secure`: unimportant informational messages
|
||||
- :samp:`info`: unimportant informational messages
|
||||
- :samp:`verbose`: debug messages (for developers and for
|
||||
troubleshooting)
|
||||
|
||||
|
|
|
@ -42,8 +42,6 @@
|
|||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#define LOG_LEVEL_SECURE LogLevel::INFO
|
||||
|
||||
#define LOG_DATE_BUF_SIZE 16
|
||||
#define LOG_DATE_LEN (LOG_DATE_BUF_SIZE - 1)
|
||||
|
||||
|
@ -99,8 +97,10 @@ parse_log_level(const char *value)
|
|||
{
|
||||
if (StringIsEqual(value, "default"))
|
||||
return LogLevel::DEFAULT;
|
||||
if (StringIsEqual(value, "secure"))
|
||||
return LOG_LEVEL_SECURE;
|
||||
else if (StringIsEqual(value, "info") ||
|
||||
/* deprecated since MPD 0.22: */
|
||||
StringIsEqual(value, "secure"))
|
||||
return LogLevel::INFO;
|
||||
else if (StringIsEqual(value, "verbose"))
|
||||
return LogLevel::DEBUG;
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue