Only write to debug log if debug is enabled
parent
43fa4a0678
commit
25ccada7c6
|
@ -41,6 +41,7 @@ class defense extends rcube_plugin {
|
|||
* @param string text for log
|
||||
*/
|
||||
private function debug($string) {
|
||||
if (!$this->debugEnabled) { return; }
|
||||
write_log($this->logfile, $this->ipaddr . " # " . $string);
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue