summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2011-02-06 23:29:13 -0500
committerScott Ullrich <sullrich@pfsense.org>2011-02-06 23:29:13 -0500
commite0a7f4410d8128e42f3301409fad636dd330ed99 (patch)
tree872d0a6c5f2157c7bb8a09ad3134375ba4483ef1 /usr/local
parent5cb07d09af04489fbe9eb21de62f1753ed8fdb28 (diff)
downloadpfsense-e0a7f4410d8128e42f3301409fad636dd330ed99.zip
pfsense-e0a7f4410d8128e42f3301409fad636dd330ed99.tar.gz
Include filename of files in report
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/crash_reporter.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr/local/www/crash_reporter.php b/usr/local/www/crash_reporter.php
index 4c93ea9..afbc13e 100755
--- a/usr/local/www/crash_reporter.php
+++ b/usr/local/www/crash_reporter.php
@@ -117,11 +117,14 @@ $crash_report_header .= "\nCrash report details:\n\n";
} else {
$crash_files = glob("/var/crash/*");
$crash_reports .= $crash_report_header;
- if(is_array($crash_files))
- foreach($crash_files as $cf)
+ if(is_array($crash_files)) {
+ foreach($crash_files as $cf) {
+ $crash_reports .= "Filename: {$cf}\n";
$crash_reports .= file_get_contents($cf);
- else
+ }
+ } else {
echo "Could not locate any crash data.";
+ }
output_crash_reporter_html($crash_reports);
}
?>
OpenPOWER on IntegriCloud