Commit 3e0ceb12 authored by Max Kellermann's avatar Max Kellermann

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".
parent 050adf66
...@@ -82,7 +82,7 @@ log_level <default, secure, or verbose> ...@@ -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 @@ ...@@ -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) ...@@ -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
......
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