From 821a3a91caed35f825be6df77931979ab32739d1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 15 Mar 2021 15:05:35 +0100 Subject: [PATCH] Add timestamps to ImportCLICommand --- .../system/cli/command/ImportCLICommand.class.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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); } -- 2.20.1