Remove LOG_LOCAL0 from openlog it caused the output to the console.
This commit is contained in:
parent
767937260d
commit
6780949019
|
|
@ -107,11 +107,9 @@ class cache {
|
||||||
public function delete($key) {
|
public function delete($key) {
|
||||||
|
|
||||||
//debug information
|
//debug information
|
||||||
if (!defined('STDIN')) {
|
openlog("fusionpbx", LOG_PID | LOG_PERROR);
|
||||||
openlog("fusionpbx", LOG_PID | LOG_PERROR, LOG_LOCAL0);
|
syslog(LOG_WARNING, "debug: cache: [key: ".$key.", script: ".$_SERVER['SCRIPT_NAME'].", line: ".__line__."]");
|
||||||
syslog(LOG_WARNING, "debug: cache: [key: ".$key.", script: ".$_SERVER['SCRIPT_NAME'].", line: ".__line__."]");
|
closelog();
|
||||||
closelog();
|
|
||||||
}
|
|
||||||
|
|
||||||
//cache method memcache
|
//cache method memcache
|
||||||
if ($_SESSION['cache']['method']['text'] == "memcache") {
|
if ($_SESSION['cache']['method']['text'] == "memcache") {
|
||||||
|
|
@ -175,11 +173,9 @@ class cache {
|
||||||
public function flush() {
|
public function flush() {
|
||||||
|
|
||||||
//debug information
|
//debug information
|
||||||
if (!defined('STDIN')) {
|
openlog("fusionpbx", LOG_PID | LOG_PERROR);
|
||||||
openlog("fusionpbx", LOG_PID | LOG_PERROR, LOG_LOCAL0);
|
syslog(LOG_WARNING, "debug: cache: [flush: all, script: ".$_SERVER['SCRIPT_NAME'].", line: ".__line__."]");
|
||||||
syslog(LOG_WARNING, "debug: cache: [flush: all, script: ".$_SERVER['SCRIPT_NAME'].", line: ".__line__."]");
|
closelog();
|
||||||
closelog();
|
|
||||||
}
|
|
||||||
|
|
||||||
//cache method memcache
|
//cache method memcache
|
||||||
if ($_SESSION['cache']['method']['text'] == "memcache") {
|
if ($_SESSION['cache']['method']['text'] == "memcache") {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue