Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
Adding trace #2
Browse files Browse the repository at this point in the history
  • Loading branch information
callapa committed Mar 15, 2022
1 parent 5dd646c commit a520e0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion www/class/centreonMedia.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a520e0f

Please sign in to comment.