From: Tim Düsterhus Date: Mon, 15 Mar 2021 14:05:35 +0000 (+0100) Subject: Add timestamps to ImportCLICommand X-Git-Tag: 5.4.0_Alpha_1~156 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=821a3a91caed35f825be6df77931979ab32739d1;p=GitHub%2FWoltLab%2FWCF.git Add timestamps to ImportCLICommand --- diff --git a/wcfsetup/install/files/lib/system/cli/command/ImportCLICommand.class.php b/wcfsetup/install/files/lib/system/cli/command/ImportCLICommand.class.php index 990db4d775..249d6a2046 100644 --- a/wcfsetup/install/files/lib/system/cli/command/ImportCLICommand.class.php +++ b/wcfsetup/install/files/lib/system/cli/command/ImportCLICommand.class.php @@ -182,10 +182,14 @@ class ImportCLICommand implements ICLICommand ]); // step 8) import data - CLIWCF::getReader()->println(WCF::getLanguage()->get('wcf.acp.dataImport.started')); + CLIWCF::getReader()->println( + \sprintf("[%s] %s", \date('c'), WCF::getLanguage()->get('wcf.acp.dataImport.started')) + ); foreach ($queue as $objectType) { - CLIWCF::getReader()->println(WCF::getLanguage()->get('wcf.acp.dataImport.data.' . $objectType)); + CLIWCF::getReader()->println( + \sprintf("[%s] %s", \date('c'), WCF::getLanguage()->get('wcf.acp.dataImport.data.' . $objectType)) + ); $workerCommand = CLICommandHandler::getCommand('worker'); $workerCommand->execute([ '--objectType=' . $objectType, @@ -193,7 +197,9 @@ class ImportCLICommand implements ICLICommand ]); } - CLIWCF::getReader()->println(WCF::getLanguage()->get('wcf.acp.dataImport.completed')); + CLIWCF::getReader()->println( + \sprintf("[%s] %s", \date('c'), WCF::getLanguage()->get('wcf.acp.dataImport.completed')) + ); CLIWCF::getReader()->setHistoryEnabled(true); }