From aa914c138048435c672b1cbca7f6c390bf407631 Mon Sep 17 00:00:00 2001 From: vnmedeiros Date: Wed, 17 Mar 2021 12:18:04 -0300 Subject: [PATCH] feat: add date and time on importer log #457 --- src/classes/importer/class-tainacan-importer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/classes/importer/class-tainacan-importer.php b/src/classes/importer/class-tainacan-importer.php index 8fc20a512..3552cecdb 100644 --- a/src/classes/importer/class-tainacan-importer.php +++ b/src/classes/importer/class-tainacan-importer.php @@ -345,10 +345,10 @@ abstract class Importer { * @param $messagelog */ public function add_log($message ){ - $this->log[] = $message; + $this->log[] = '[' . date("Y-m-d H:i:s") . '] ' . $message; } public function add_error_log($message ){ - $this->error_log[] = $message; + $this->error_log[] = '[' . date("Y-m-d H:i:s") . '] ' . $message; } public function add_collection(array $collection) {