mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-25 22:55:56 -05:00
Make logs to stdout when running in foreground
This commit is contained in:
parent
9ac1213126
commit
32e4d018cb
@ -608,7 +608,7 @@ int main(int argc, char *argv[]) {
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if((config.logfile) && (!parseonly)) {
|
||||
if((config.logfile) && (!parseonly) && (!foreground)) {
|
||||
log_setdest(config.logfile,LOGDEST_LOGFILE);
|
||||
} else {
|
||||
if(!foreground) {
|
||||
|
Loading…
Reference in New Issue
Block a user