规范日志记录级别

This commit is contained in:
thinkphp
2015-12-21 08:37:09 +08:00
parent b209bf5978
commit e2bf69ddb1
4 changed files with 6 additions and 6 deletions

View File

@@ -195,7 +195,7 @@ class Mongo extends Driver
public function error()
{
$this->error = $this->_mongo->lastError();
Log::record($this->error, 'ERR');
Log::record($this->error, 'error');
return $this->error;
}