diff options
Diffstat (limited to 'lib/log.php')
-rw-r--r-- | lib/log.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/log.php b/lib/log.php index a951b676037..98333be54fe 100644 --- a/lib/log.php +++ b/lib/log.php @@ -41,7 +41,7 @@ class OC_Log{ */ public static function write($app,$message,$level){ $minLevel=OC_Config::getValue( "loglevel", 2 ); - if($level>$minLevel){ + if($level>=$minLevel){ $datadir=OC_Config::getValue( "datadirectory", OC::$SERVERROOT.'/data' ); $logFile=OC_Config::getValue( "logfile", $datadir.'/owncloud.log' ); $entry=array('app'=>$app,'message'=>$message,'level'=>$level,'time'=>time()); |