fix log level check

This commit is contained in:
Robin Appelman 2011-10-22 12:03:34 +02:00
parent 42306f1e35
commit af1f0305eb
1 changed files with 1 additions and 1 deletions

View File

@ -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());