diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2016-05-30 12:23:45 +0200 |
---|---|---|
committer | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-05-30 12:23:45 +0200 |
commit | 0e3a0e0fdb17938d473434d94e3c16c1c5dccf73 (patch) | |
tree | 7dd003f4718f0981f9153ea853fdb4501b3170ac /core/Command | |
parent | 12b482b976656bb73b1dd265b3e069ff4eb71c65 (diff) | |
download | nextcloud-server-0e3a0e0fdb17938d473434d94e3c16c1c5dccf73.tar.gz nextcloud-server-0e3a0e0fdb17938d473434d94e3c16c1c5dccf73.zip |
Allow setting debug as loglevel via occ log_manage (#24834)
Diffstat (limited to 'core/Command')
-rw-r--r-- | core/Command/Log/Manage.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Command/Log/Manage.php b/core/Command/Log/Manage.php index 948f516d28b..2f92c639bac 100644 --- a/core/Command/Log/Manage.php +++ b/core/Command/Log/Manage.php @@ -78,7 +78,8 @@ class Manage extends Command { $toBeSet['log_type'] = $backend; } - if ($level = $input->getOption('level')) { + $level = $input->getOption('level'); + if ($level !== null) { if (is_numeric($level)) { $levelNum = $level; // sanity check |