From 41a8aa09ff1f2fb5014c6c4b45c0cd537b3489bb Mon Sep 17 00:00:00 2001 From: Pavel Punsky Date: Sat, 27 Aug 2022 20:34:35 -0700 Subject: [PATCH] Document dependency between new-log-timestamp-format and new-log-timestamp --- examples/etc/turnserver.conf | 2 +- src/apps/relay/mainrelay.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/etc/turnserver.conf b/examples/etc/turnserver.conf index 9e29065b..892fb0b8 100644 --- a/examples/etc/turnserver.conf +++ b/examples/etc/turnserver.conf @@ -542,7 +542,7 @@ # Enable full ISO-8601 timestamp in all logs. #new-log-timestamp -# Set timestamp format (in strftime(1) format) +# Set timestamp format (in strftime(1) format). Depends on new-log-timestamp to be enabled. #new-log-timestamp-format "%FT%T%z" # Disabled by default binding logging in verbose log mode to avoid DoS attacks. diff --git a/src/apps/relay/mainrelay.c b/src/apps/relay/mainrelay.c index e4a5773d..89edf87a 100644 --- a/src/apps/relay/mainrelay.c +++ b/src/apps/relay/mainrelay.c @@ -629,7 +629,7 @@ static char Usage[] = "Usage: turnserver [options]\n" " name will be constructed as-is, without PID and date appendage.\n" " This option can be used, for example, together with the logrotate tool.\n" " --new-log-timestamp Enable full ISO-8601 timestamp in all logs.\n" -" --new-log-timestamp-format Set timestamp format (in strftime(1) format)\n" +" --new-log-timestamp-format Set timestamp format (in strftime(1) format). Depends on --new-log-timestamp to be enabled.\n" " --log-binding Log STUN binding request. It is now disabled by default to avoid DoS attacks.\n" " --stale-nonce[=] Use extra security with nonce value having limited lifetime (default 600 secs).\n" " --max-allocate-lifetime Set the maximum value for the allocation lifetime. Default to 3600 secs.\n"