diff --git a/server/SHServ/Controllers/DevicesRESTAPIController.php b/server/SHServ/Controllers/DevicesRESTAPIController.php index 0b86c60..d38b189 100644 --- a/server/SHServ/Controllers/DevicesRESTAPIController.php +++ b/server/SHServ/Controllers/DevicesRESTAPIController.php @@ -11,7 +11,7 @@ protected function withScanLock(callable $callback) { $tmpDir = sys_get_temp_dir(); $lockFile = $tmpDir . '/shserv-scan.lock'; - $debugLog = dirname(__DIR__, 2) . '/Cache/scan-debug.log'; + $debugLog = $tmpDir . '/shserv-scan-debug.log'; $log = function($msg) use ($debugLog) { $line = date('Y-m-d H:i:s') . ' [' . getmypid() . '] ' . $msg . PHP_EOL;