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:
|
log levels are available:
|
||||||
|
|
||||||
- :samp:`default`: interesting informational messages
|
- :samp:`default`: interesting informational messages
|
||||||
- :samp:`secure`: unimportant informational messages
|
- :samp:`info`: unimportant informational messages
|
||||||
- :samp:`verbose`: debug messages (for developers and for
|
- :samp:`verbose`: debug messages (for developers and for
|
||||||
troubleshooting)
|
troubleshooting)
|
||||||
|
|
||||||
|
|
|
@ -42,8 +42,6 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#define LOG_LEVEL_SECURE LogLevel::INFO
|
|
||||||
|
|
||||||
#define LOG_DATE_BUF_SIZE 16
|
#define LOG_DATE_BUF_SIZE 16
|
||||||
#define LOG_DATE_LEN (LOG_DATE_BUF_SIZE - 1)
|
#define LOG_DATE_LEN (LOG_DATE_BUF_SIZE - 1)
|
||||||
|
|
||||||
|
@ -99,8 +97,10 @@ parse_log_level(const char *value)
|
||||||
{
|
{
|
||||||
if (StringIsEqual(value, "default"))
|
if (StringIsEqual(value, "default"))
|
||||||
return LogLevel::DEFAULT;
|
return LogLevel::DEFAULT;
|
||||||
if (StringIsEqual(value, "secure"))
|
else if (StringIsEqual(value, "info") ||
|
||||||
return LOG_LEVEL_SECURE;
|
/* deprecated since MPD 0.22: */
|
||||||
|
StringIsEqual(value, "secure"))
|
||||||
|
return LogLevel::INFO;
|
||||||
else if (StringIsEqual(value, "verbose"))
|
else if (StringIsEqual(value, "verbose"))
|
||||||
return LogLevel::DEBUG;
|
return LogLevel::DEBUG;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue