fix getLogFile when use env

This commit is contained in:
xiaomlove
2022-06-20 19:16:37 +08:00
parent 13a835f5bf
commit eb3d7138d6
2 changed files with 4 additions and 2 deletions

View File

@@ -40,6 +40,7 @@ class BackupCronjob extends Command
{
$force = $this->option('force');
$this->info("force: $force");
do_log("ENV: " . getenv('NEXUS_LOG_DIR', true) . ", logFile: " . getLogFile());
$rep = new ToolRepository();
$result = $rep->cronjobBackup($force);
$log = sprintf(