mirror of
https://github.com/unraid/webgui.git
synced 2026-03-13 06:19:47 -05:00
Added 'graphql-api.log' to diagnostics
This commit is contained in:
@@ -260,6 +260,12 @@ foreach (glob("/var/log/syslog*") as $file) {
|
||||
if (basename($file)=='syslog' && filesize($file)>=$max) exert("tail -n 200 ".escapeshellarg("$log.txt")." >".escapeshellarg("$log.last200.txt"));
|
||||
exert("truncate -s '<$max' ".escapeshellarg("$log.txt"));
|
||||
}
|
||||
// copy graphql-api.log
|
||||
$graphql = "/var/log/graphql-api.log";
|
||||
if (file_exists($graphql)) {
|
||||
$log = "/$diag/logs/graphql-api.txt";
|
||||
exert("todos <$graphql >".escapeshellarg($log));
|
||||
}
|
||||
// create resulting zip file and remove temp folder
|
||||
exert("zip -qmr ".escapeshellarg($zip)." ".escapeshellarg("/$diag"));
|
||||
if ($cli) echo "done.\nZIP file '$zip' created.\n";
|
||||
|
||||
Reference in New Issue
Block a user