Allow setting debug as loglevel via occ log_manage (#24834)

This commit is contained in:
Joas Schilling 2016-05-30 12:23:45 +02:00 committed by Thomas Müller
parent 12b482b976
commit 0e3a0e0fdb
1 changed files with 2 additions and 1 deletions

View File

@ -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