Browse Source
Only show metrics by default if stdout is a TTY
pull/4/head
Jack Grigg
8 years ago
No known key found for this signature in database
GPG Key ID: 6A6914DAFBEA00DA
1 changed files with
1 additions and
1 deletions
-
src/init.cpp
|
|
@ -980,7 +980,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) |
|
|
|
threadGroup.create_thread(boost::bind(&TraceThread<CScheduler::Function>, "scheduler", serviceLoop)); |
|
|
|
|
|
|
|
if ((chainparams.NetworkIDString() != "regtest") && |
|
|
|
GetBoolArg("-showmetrics", true) && |
|
|
|
GetBoolArg("-showmetrics", isatty(STDOUT_FILENO)) && |
|
|
|
!fPrintToConsole && !GetBoolArg("-daemon", false)) { |
|
|
|
// Start the persistent metrics interface
|
|
|
|
ConnectMetricsScreen(); |
|
|
|