mirror of
https://github.com/hauke68/Magallanes.git
synced 2025-09-13 20:50:18 +02:00
Tweak log message.
This commit is contained in:
parent
585fda2f50
commit
60d16e57f9
@ -106,17 +106,20 @@ class Console
|
|||||||
$showGreetings = false;
|
$showGreetings = false;
|
||||||
} else {
|
} else {
|
||||||
self::$logEnabled = $config->general('logging', false);
|
self::$logEnabled = $config->general('logging', false);
|
||||||
if(self::$logEnabled)
|
|
||||||
{
|
|
||||||
self::log("Logging enabled");
|
|
||||||
self::output('<red> Logging enabled: ' . self::getLogFile() . '</red>', 1, 1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Greetings
|
// Greetings
|
||||||
if ($showGreetings) {
|
if ($showGreetings) {
|
||||||
|
if (!self::$logEnabled) {
|
||||||
self::output('Starting <blue>Magallanes</blue>', 0, 2);
|
self::output('Starting <blue>Magallanes</blue>', 0, 2);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
self::output('Starting <blue>Magallanes</blue>', 0, 1);
|
||||||
|
self::log("Logging enabled");
|
||||||
|
self::output('<yellow>Logging enabled: ' . self::getLogFile() . '</yellow>', 1, 2);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Run Command - Check if there is a Configuration Error
|
// Run Command - Check if there is a Configuration Error
|
||||||
if ($configError !== false) {
|
if ($configError !== false) {
|
||||||
|
Loading…
Reference in New Issue
Block a user