Преглед на файлове

Remove LOG_LOCAL0 from openlog it caused the output to the console.

FusionPBX преди 3 години
родител
ревизия
3c4cf1f00d
променени са 1 файла, в които са добавени 6 реда и са изтрити 10 реда
  1. 6 10
      resources/classes/cache.php

+ 6 - 10
resources/classes/cache.php

@@ -107,11 +107,9 @@ class cache {
 	public function delete($key) {
 
 		//debug information
-			if (!defined('STDIN')) {
-				openlog("fusionpbx", LOG_PID | LOG_PERROR, LOG_LOCAL0);
-				syslog(LOG_WARNING, "debug: cache: [key: ".$key.", script: ".$_SERVER['SCRIPT_NAME'].", line: ".__line__."]");
-				closelog();
-			}
+			openlog("fusionpbx", LOG_PID | LOG_PERROR);
+			syslog(LOG_WARNING, "debug: cache: [key: ".$key.", script: ".$_SERVER['SCRIPT_NAME'].", line: ".__line__."]");
+			closelog();
 
 		//cache method memcache 
 			if ($_SESSION['cache']['method']['text'] == "memcache") {
@@ -175,11 +173,9 @@ class cache {
 	public function flush() {
 
 		//debug information
-			if (!defined('STDIN')) {
-				openlog("fusionpbx", LOG_PID | LOG_PERROR, LOG_LOCAL0);
-				syslog(LOG_WARNING, "debug: cache: [flush: all, script: ".$_SERVER['SCRIPT_NAME'].", line: ".__line__."]");
-				closelog();
-			}
+			openlog("fusionpbx", LOG_PID | LOG_PERROR);
+			syslog(LOG_WARNING, "debug: cache: [flush: all, script: ".$_SERVER['SCRIPT_NAME'].", line: ".__line__."]");
+			closelog();
 
 		//cache method memcache 
 			if ($_SESSION['cache']['method']['text'] == "memcache") {