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
84f43ccd
Commit
84f43ccd
authored
Sep 06, 2022
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LogInit: default to stderr on Windows
Don't require "log_file" setting, for "--no-config" operation. Closes
https://github.com/MusicPlayerDaemon/MPD/issues/1600
parent
38704c9c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
NEWS
NEWS
+2
-0
LogInit.cxx
src/LogInit.cxx
+4
-1
No files found.
NEWS
View file @
84f43ccd
ver 0.23.10 (not yet released)
* Windows
- log to stdout by default, don't require "log_file" setting
ver 0.23.9 (2022/08/18)
* input
...
...
src/LogInit.cxx
View file @
84f43ccd
...
...
@@ -163,7 +163,10 @@ log_init(const ConfigData &config, bool verbose, bool use_stdout)
return
;
}
#endif
#ifndef HAVE_SYSLOG
#ifdef _WIN32
/* default to stdout on Windows */
out_fd
=
STDOUT_FILENO
;
#elif !defined(HAVE_SYSLOG)
throw
std
::
runtime_error
(
"config parameter 'log_file' not found"
);
#endif
#ifdef HAVE_SYSLOG
...
...
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