diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-06-10 14:03:12 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-06-10 14:03:12 +0200 |
commit | 86c5243be5525b97b232b23c241a60524455a41c (patch) | |
tree | 9555d6d044b08ebe388de1ac6112e926eb88caeb /lib/db.php | |
parent | 8dc6bdd96b9088b87fe8d11346338343135c77e7 (diff) | |
download | nextcloud-server-86c5243be5525b97b232b23c241a60524455a41c.tar.gz nextcloud-server-86c5243be5525b97b232b23c241a60524455a41c.zip |
remove duplicate logging from db.php, now happens in entrypoints
Diffstat (limited to 'lib/db.php')
-rw-r--r-- | lib/db.php | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/db.php b/lib/db.php index ccbfcf3ab53..080e895e352 100644 --- a/lib/db.php +++ b/lib/db.php @@ -408,7 +408,6 @@ class OC_DB { // TODO try to convert LIMIT OFFSET notation to parameters, see fixLimitClauseForMSSQL $message = 'LIMIT and OFFSET are forbidden for portability reasons,' . ' pass an array with \'limit\' and \'offset\' instead'; - \OCP\Util::writeLog('db', $message, \OCP\Util::FATAL); throw new DatabaseException($message); } $stmt = array('sql' => $stmt, 'limit' => null, 'offset' => null); @@ -417,7 +416,6 @@ class OC_DB { // convert to prepared statement if ( ! array_key_exists('sql', $stmt) ) { $message = 'statement array must at least contain key \'sql\''; - \OCP\Util::writeLog('db', $message, \OCP\Util::FATAL); throw new DatabaseException($message); } if ( ! array_key_exists('limit', $stmt) ) { @@ -438,7 +436,6 @@ class OC_DB { } else { $message = 'Expected a prepared statement or array got ' . gettype($stmt); } - \OCP\Util::writeLog('db', $message, \OCP\Util::FATAL); throw new DatabaseException($message); } return $result; @@ -937,7 +934,6 @@ class OC_DB { } else { $message .= ', Root cause:' . self::getErrorMessage($result); } - OC_Log::write('db', $message, OC_Log::FATAL); throw new DatabaseException($message, getErrorCode($result)); } } |