瀏覽代碼

edited default log file if logger is not setup

CauseFX 5 年之前
父節點
當前提交
b293146975
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      api/functions/log-functions.php

+ 1 - 1
api/functions/log-functions.php

@@ -276,7 +276,7 @@ trait LogFunctions
 	public function tempLogIfNeeded()
 	public function tempLogIfNeeded()
 	{
 	{
 		if (!$this->log) {
 		if (!$this->log) {
-			return $this->randString() . '.log';
+			return $this->root . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'organizr-' . $this->randString() . '.log';
 		} else {
 		} else {
 			return $this->log;
 			return $this->log;
 		}
 		}