modify
This commit is contained in:
@@ -179,7 +179,7 @@ class Logger extends Component
|
||||
$files = glob(storage(null, $dirName) . '/*');
|
||||
if (count($files) >= 15) {
|
||||
$command = 'find ' . storage(null, $dirName) . '/ -mtime +15 -name "*.log" -exec rm -rf {} \;';
|
||||
if (Context::inCoroutine()) {
|
||||
if (Coroutine::getCid() !== -1) {
|
||||
Coroutine\System::exec($command);
|
||||
} else {
|
||||
\shell_exec($command);
|
||||
|
||||
Reference in New Issue
Block a user