mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Make a good copy of PHP_errors.log for crash reporter
Forum report https://forum.pfsense.org/index.php/topic,72877.0.html
This commit is contained in:
parent
d3515e02d5
commit
38cb3c392d
@ -105,7 +105,7 @@ exec("/usr/bin/grep -vi warning /tmp/PHP_errors.log", $php_errors);
|
||||
mkdir("/var/crash", 0750, true);
|
||||
@file_put_contents("/var/crash/crashreport_header.txt", $crash_report_header);
|
||||
if(file_exists("/tmp/PHP_errors.log"))
|
||||
copy("/tmp/PHP_errors.log", "/var/crash/");
|
||||
copy("/tmp/PHP_errors.log", "/var/crash/PHP_errors.log");
|
||||
exec("/usr/bin/gzip /var/crash/*");
|
||||
$files_to_upload = glob("/var/crash/*");
|
||||
echo "<p/>";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user