diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-10-26 21:04:33 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-10-26 21:04:41 +0100 |
| commit | 2b625510d37471d4eaf5f99c2311afbdcae448c2 (patch) | |
| tree | 77cd9b5aaeefcd75409dab1811a7b6985744276b /src/init.cpp | |
| parent | Merge pull request #6622 (diff) | |
| parent | Add option for microsecond precision in debug.log (diff) | |
| download | discoin-2b625510d37471d4eaf5f99c2311afbdcae448c2.tar.xz discoin-2b625510d37471d4eaf5f99c2311afbdcae448c2.zip | |
Merge pull request #6881
7bbc7c3 Add option for microsecond precision in debug.log (Suhas Daftuar)
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp index 0210ac113..920fc3069 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -431,6 +431,7 @@ std::string HelpMessage(HelpMessageMode mode) strUsage += HelpMessageOpt("-logtimestamps", strprintf(_("Prepend debug output with timestamp (default: %u)"), 1)); if (showDebug) { + strUsage += HelpMessageOpt("-logtimemicros", strprintf("Add microsecond precision to debug timestamps (default: %u)", DEFAULT_LOGTIMEMICROS)); strUsage += HelpMessageOpt("-limitfreerelay=<n>", strprintf("Continuously rate-limit free transactions to <n>*1000 bytes per minute (default: %u)", 15)); strUsage += HelpMessageOpt("-relaypriority", strprintf("Require high priority for relaying free or low-fee transactions (default: %u)", 1)); strUsage += HelpMessageOpt("-maxsigcachesize=<n>", strprintf("Limit size of signature cache to <n> entries (default: %u)", 50000)); @@ -728,6 +729,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) // Set this early so that parameter interactions go to console fPrintToConsole = GetBoolArg("-printtoconsole", false); fLogTimestamps = GetBoolArg("-logtimestamps", true); + fLogTimeMicros = GetBoolArg("-logtimemicros", DEFAULT_LOGTIMEMICROS); fLogIPs = GetBoolArg("-logips", false); LogPrintf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"); |