Skip to content

Commit 0fee078

Browse files
committed
Show -logtimemicros in default help
In Bitcoin Core this is limited to --help-debug, but for a mining application millisecond precision in logs is quite useful, so let's not hide the option.
1 parent 50ea909 commit 0fee078

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

doc/man/sv2-tp.1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ Prepend debug output with name of the originating source location
8383
.IP
8484
Prepend debug output with name of the originating thread (default: 0)
8585
.HP
86+
\fB\-logtimemicros\fR
87+
.IP
88+
Add microsecond precision to debug timestamps (default: 0)
89+
.HP
8690
\fB\-logtimestamps\fR
8791
.IP
8892
Prepend debug output with timestamp (default: 1)

src/init/common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void AddLoggingArgs(ArgsManager& argsman)
3535
argsman.AddArg("-logtimestamps", strprintf("Prepend debug output with timestamp (default: %u)", DEFAULT_LOGTIMESTAMPS), ArgsManager::ALLOW_ANY, OptionsCategory::DEBUG_TEST);
3636
argsman.AddArg("-logthreadnames", strprintf("Prepend debug output with name of the originating thread (default: %u)", DEFAULT_LOGTHREADNAMES), ArgsManager::ALLOW_ANY, OptionsCategory::DEBUG_TEST);
3737
argsman.AddArg("-logsourcelocations", strprintf("Prepend debug output with name of the originating source location (source file, line number and function name) (default: %u)", DEFAULT_LOGSOURCELOCATIONS), ArgsManager::ALLOW_ANY, OptionsCategory::DEBUG_TEST);
38-
argsman.AddArg("-logtimemicros", strprintf("Add microsecond precision to debug timestamps (default: %u)", DEFAULT_LOGTIMEMICROS), ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::DEBUG_TEST);
38+
argsman.AddArg("-logtimemicros", strprintf("Add microsecond precision to debug timestamps (default: %u)", DEFAULT_LOGTIMEMICROS), ArgsManager::ALLOW_ANY, OptionsCategory::DEBUG_TEST);
3939
argsman.AddArg("-loglevelalways", strprintf("Always prepend a category and level (default: %u)", DEFAULT_LOGLEVELALWAYS), ArgsManager::ALLOW_ANY, OptionsCategory::DEBUG_TEST);
4040
argsman.AddArg("-printtoconsole", strprintf("Send trace/debug info to console (default: %u). To disable logging to file, set -debuglogfile=0", DEFAULT_PRINTTOCONSOLE), ArgsManager::ALLOW_ANY, OptionsCategory::DEBUG_TEST);
4141
argsman.AddArg("-shrinkdebugfile", "Shrink debug.log file on client startup (default: 1 when no -debug)", ArgsManager::ALLOW_ANY, OptionsCategory::DEBUG_TEST);

0 commit comments

Comments
 (0)