]> granicus.if.org Git - icinga2/commitdiff
Fix troubleshooht command truncating crash logs
authorJean-Marcel Flach <jean-marcel.flach@netways.de>
Thu, 16 Apr 2015 14:17:12 +0000 (16:17 +0200)
committerJean-Marcel Flach <jean-marcel.flach@netways.de>
Thu, 16 Apr 2015 14:17:12 +0000 (16:17 +0200)
fixes #9064

lib/cli/troubleshootcommand.cpp

index ff3a6f7b3b977150f39792d7358694253ad090c6..8b4d91eec5ff8369df1b745369c98463fce69510 100644 (file)
@@ -409,8 +409,8 @@ bool TroubleshootCommand::PrintCrashReports(InfoLog& log)
        else {
                InfoLogLine(log)
                    << "Latest crash report is from " << Utility::FormatDateTime("%Y-%m-%d %H:%M:%S", Utility::GetTime()) << '\n'
-                   << "File: " << bestFilename << '\n';
-               Tail(bestFilename, 20, log);
+                   << "File: " << bestFilename << "\n\n";
+               PrintConf(log, bestFilename);
                InfoLogLine(log)
                    << '\n';
        }