mirror of
https://github.com/owntracks/recorder.git
synced 2026-08-27 16:57:21 +00:00
if DOCKER_RUNNING in environment add LOG_PERROR to openlog
addresses https://github.com/owntracks/recorder/issues/426
This commit is contained in:
+1
-1
@@ -1514,7 +1514,7 @@ int main(int argc, char **argv)
|
||||
udata.debug = FALSE;
|
||||
|
||||
flags = LOG_PID;
|
||||
if (isatty(0)) {
|
||||
if (isatty(0) || (getenv("DOCKER_RUNNING") != NULL)) {
|
||||
flags |= LOG_PERROR;
|
||||
}
|
||||
openlog("ot-recorder", flags, syslog_facility_code(logfacility));
|
||||
|
||||
Reference in New Issue
Block a user