diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-10-22 12:03:34 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-10-22 12:22:57 +0200 |
commit | af1f0305eb6a9bbb918cdba0afd7777ef533fa06 (patch) | |
tree | 252a8c841a38c02f73ced79c7c2940fce370fbbd /lib/log.php | |
parent | 42306f1e35f901346feffed296397b2ed751fe74 (diff) | |
download | nextcloud-server-af1f0305eb6a9bbb918cdba0afd7777ef533fa06.tar.gz nextcloud-server-af1f0305eb6a9bbb918cdba0afd7777ef533fa06.zip |
fix log level check
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()); |