diff options
| author | Suhas Daftuar <[email protected]> | 2015-10-23 13:07:36 -0400 |
|---|---|---|
| committer | Suhas Daftuar <[email protected]> | 2015-10-26 15:05:37 -0400 |
| commit | 7bbc7c314f4ebb1e7fe882a0a2aae5a5655f2972 (patch) | |
| tree | 962a5af7cb1251b5166915474c80d4b54277fc52 /src/init.cpp | |
| parent | Merge pull request #6820 (diff) | |
| download | discoin-7bbc7c314f4ebb1e7fe882a0a2aae5a5655f2972.tar.xz discoin-7bbc7c314f4ebb1e7fe882a0a2aae5a5655f2972.zip | |
Add option for microsecond precision in debug.log
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 a079dce5b..bfa9c95e3 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -428,6 +428,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)); @@ -726,6 +727,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"); |