From 95adafc90fa2ee129a45160ffba5a2b20f4fd582 Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Tue, 24 Oct 2023 11:00:32 +0200 Subject: [PATCH] if DOCKER_RUNNING in environment add LOG_PERROR to openlog addresses https://github.com/owntracks/recorder/issues/426 --- recorder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recorder.c b/recorder.c index 1080898..56bf4ad 100644 --- a/recorder.c +++ b/recorder.c @@ -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));