mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-30 17:23:44 -04: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);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if((config.logfile) && (!parseonly)) {
|
if((config.logfile) && (!parseonly) && (!foreground)) {
|
||||||
log_setdest(config.logfile,LOGDEST_LOGFILE);
|
log_setdest(config.logfile,LOGDEST_LOGFILE);
|
||||||
} else {
|
} else {
|
||||||
if(!foreground) {
|
if(!foreground) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user