improved log message formatting

This commit is contained in:
Steffen Schröder 2014-06-12 15:50:13 +02:00
parent e202ce9f86
commit 43a2e6b075
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ logMessage('Starting ManiaControl...');
function checkRequirements() { function checkRequirements() {
// Check for min PHP version // Check for min PHP version
$phpVersion = phpversion(); $phpVersion = phpversion();
$message = 'Checking for minimum required PHP-Version' . MIN_PHP_VERSION . ' ...'; $message = 'Checking for minimum required PHP-Version ' . MIN_PHP_VERSION . ' ... ';
if ($phpVersion < MIN_PHP_VERSION) { if ($phpVersion < MIN_PHP_VERSION) {
logMessage($message . $phpVersion . ' TOO OLD VERSION!'); logMessage($message . $phpVersion . ' TOO OLD VERSION!');
logMessage(' -- Make sure that you install at least PHP ' . MIN_PHP_VERSION . '!'); logMessage(' -- Make sure that you install at least PHP ' . MIN_PHP_VERSION . '!');

View File

@ -97,7 +97,7 @@ class ManiaControl implements CommandListener, TimerListener {
// Construct Error Handler // Construct Error Handler
$this->errorHandler = new ErrorHandler($this); $this->errorHandler = new ErrorHandler($this);
$this->log('Loading ManiaControl v' . self::VERSION . '...'); $this->log('Loading ManiaControl v' . self::VERSION . ' ...');
$this->loadConfig(); $this->loadConfig();