From a520e0f97d9af57e77d184473444bc787496ec25 Mon Sep 17 00:00:00 2001 From: Laurent Calvet Date: Tue, 15 Mar 2022 16:45:26 +0100 Subject: [PATCH] Adding trace #2 --- www/class/centreonMedia.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/class/centreonMedia.class.php b/www/class/centreonMedia.class.php index b37a579e3ec..6ee7ee39ae3 100644 --- a/www/class/centreonMedia.class.php +++ b/www/class/centreonMedia.class.php @@ -184,7 +184,9 @@ private function createDirectory($dirname) // Create directory and nested folder structure if (!is_dir($fullPath)) { - error_log('trying to create directory: ' . $fullPath); + $timestamp = (new DateTime())->getTimestamp(); + $calledClass = get_called_class(); + error_log("[$timestamp] (FROM $calledClass) trying to create directory: " . $fullPath); mkdir($fullPath, 0755, true); } elseif (fileperms($fullPath) !== 0755) { chmod($fullPath, 0755);