diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-03-20 17:36:57 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-05-13 08:28:10 +0200 |
commit | 7e5bb96027ee4409d8883afffa2cad50cdc3c782 (patch) | |
tree | 96e2b633763d6bc1d4d1e9d26857bc7bb1e3f476 /lib/log.php | |
parent | b41999a2c0628f3241b07afcae0b29bae682583c (diff) | |
download | nextcloud-server-7e5bb96027ee4409d8883afffa2cad50cdc3c782.tar.gz nextcloud-server-7e5bb96027ee4409d8883afffa2cad50cdc3c782.zip |
Fix OC\Log with OC_Log in wrong namespace
Diffstat (limited to 'lib/log.php')
-rw-r--r-- | lib/log.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/log.php b/lib/log.php index f7a68c30680..6353693a289 100644 --- a/lib/log.php +++ b/lib/log.php @@ -38,7 +38,7 @@ class Log { */ public function emergency($message, array $context = array()) { - $this->log(OC_Log::FATAL, $message, $context); + $this->log(self::FATAL, $message, $context); } /** @@ -80,7 +80,7 @@ class Log { */ public function error($message, array $context = array()) { - $this->log(OC_Log::ERROR, $message, $context); + $this->log(self::ERROR, $message, $context); } /** @@ -95,7 +95,7 @@ class Log { */ public function warning($message, array $context = array()) { - $this->log(OC_Log::WARN, $message, $context); + $this->log(self::WARN, $message, $context); } /** @@ -121,7 +121,7 @@ class Log { */ public function info($message, array $context = array()) { - $this->log(OC_Log::INFO, $message, $context); + $this->log(self::INFO, $message, $context); } /** @@ -133,7 +133,7 @@ class Log { */ public function debug($message, array $context = array()) { - $this->log(OC_Log::DEBUG, $message, $context); + $this->log(self::DEBUG, $message, $context); } /** @@ -151,7 +151,7 @@ class Log { } else { $app = 'no app in context'; } - OC_Log::write($app, $message, $level); + \OC_Log::write($app, $message, $level); } } |