Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
e3106a01
Commit
e3106a01
authored
Sep 23, 2020
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LogInit: provide mappings for LogLevel::{ERROR,WARNING}
parent
3e0ceb12
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
mpd.conf.5.rst
doc/mpd.conf.5.rst
+2
-0
LogInit.cxx
src/LogInit.cxx
+4
-0
No files found.
doc/mpd.conf.5.rst
View file @
e3106a01
...
...
@@ -81,6 +81,8 @@ log_level <default, secure, or verbose>
Suppress all messages below the given threshold. The following
log levels are available:
- :samp:`error`: errors
- :samp:`warning`: warnings
- :samp:`default`: interesting informational messages
- :samp:`info`: unimportant informational messages
- :samp:`verbose`: debug messages (for developers and for
...
...
src/LogInit.cxx
View file @
e3106a01
...
...
@@ -103,6 +103,10 @@ parse_log_level(const char *value)
return
LogLevel
::
INFO
;
else
if
(
StringIsEqual
(
value
,
"verbose"
))
return
LogLevel
::
DEBUG
;
else
if
(
StringIsEqual
(
value
,
"warning"
))
return
LogLevel
::
WARNING
;
else
if
(
StringIsEqual
(
value
,
"error"
))
return
LogLevel
::
ERROR
;
else
throw
FormatRuntimeError
(
"unknown log level
\"
%s
\"
"
,
value
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment