summaryrefslogtreecommitdiffstats
path: root/lib/private/log/errorlog.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/log/errorlog.php')
-rw-r--r--lib/private/log/errorlog.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/private/log/errorlog.php b/lib/private/log/errorlog.php
index 007ab307722..ad3605136d0 100644
--- a/lib/private/log/errorlog.php
+++ b/lib/private/log/errorlog.php
@@ -39,10 +39,7 @@ class OC_Log_Errorlog {
* @param int $level
*/
public static function write($app, $message, $level) {
- $minLevel = min(OC_Config::getValue("loglevel", OC_Log::WARN), OC_Log::ERROR);
- if ($level >= $minLevel) {
- error_log('[owncloud]['.$app.'] '.$message);
- }
+ error_log('[owncloud]['.$app.']['.$level.'] '.$message);
}
}