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