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>
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
......
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