Skip to content

Commit

Permalink
if DOCKER_RUNNING in environment add LOG_PERROR to openlog
Browse files Browse the repository at this point in the history
  addresses #426
  • Loading branch information
jpmens committed Oct 24, 2023
1 parent f0da7cd commit 95adafc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recorder.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 95adafc

Please sign in to comment.