mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 05:25:56 +00:00
CLI tools: fix --quiet not working if --log is unset
This commit is contained in:
@@ -117,7 +117,6 @@
|
||||
}
|
||||
|
||||
Debug::set_enabled(true);
|
||||
Debug::set_quiet(isset($options['quiet']));
|
||||
|
||||
if (isset($options["log-level"])) {
|
||||
Debug::set_loglevel((int)$options["log-level"]);
|
||||
@@ -126,6 +125,11 @@
|
||||
if (isset($options["log"])) {
|
||||
Debug::set_logfile($options["log"]);
|
||||
Debug::log("Logging to " . $options["log"]);
|
||||
Debug::set_quiet(isset($options['quiet']));
|
||||
} else {
|
||||
if (isset($options['quiet'])) {
|
||||
Debug::set_loglevel(Debug::$LOG_DISABLED);
|
||||
}
|
||||
}
|
||||
|
||||
if (!isset($options["daemon"])) {
|
||||
|
||||
Reference in New Issue
Block a user