diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-04-25 15:22:28 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-04-26 10:45:52 +0200 |
commit | 38a90130ce425d531a804dff591df4a883de3154 (patch) | |
tree | d579e7442832672ab2987f9c9ecf62e79ca09a8d /settings | |
parent | 12c5db90322f61d4d48e1bb534bb94382d17e317 (diff) | |
download | nextcloud-server-38a90130ce425d531a804dff591df4a883de3154.tar.gz nextcloud-server-38a90130ce425d531a804dff591df4a883de3154.zip |
move log constants to ILogger
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'settings')
-rw-r--r-- | settings/Controller/UsersController.php | 2 | ||||
-rw-r--r-- | settings/ajax/enableapp.php | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/settings/Controller/UsersController.php b/settings/Controller/UsersController.php index c56f0e70604..3f2e63f1bba 100644 --- a/settings/Controller/UsersController.php +++ b/settings/Controller/UsersController.php @@ -455,7 +455,7 @@ class UsersController extends Controller { } catch (\Exception $e) { $this->log->logException($e, [ 'message' => "Can't send new user mail to $email", - 'level' => \OCP\Util::ERROR, + 'level' => ILogger::ERROR, 'app' => 'settings', ]); } diff --git a/settings/ajax/enableapp.php b/settings/ajax/enableapp.php index efe5ee3374f..0ecc001a24c 100644 --- a/settings/ajax/enableapp.php +++ b/settings/ajax/enableapp.php @@ -24,6 +24,9 @@ * along with this program. If not, see <http://www.gnu.org/licenses/> * */ + +use OCP\ILogger; + OC_JSON::checkAdminUser(); \OC_JSON::callCheck(); @@ -51,7 +54,7 @@ try { OC_JSON::success(['data' => ['update_required' => $updateRequired]]); } catch (Exception $e) { \OC::$server->getLogger()->logException($e, [ - 'level' => \OCP\Util::DEBUG, + 'level' => ILogger::DEBUG, 'app' => 'core', ]); OC_JSON::error(array("data" => array("message" => $e->getMessage()) )); |