more common code cleanup

This commit is contained in:
commy2
2015-09-18 21:46:21 +02:00
parent f3a175e9d6
commit 85fd9d9d75
15 changed files with 82 additions and 91 deletions

View File

@ -29,13 +29,7 @@ _defaultLogDisplayLevel = [GVAR(LOGDISPLAY_LEVEL), DEFAULT_TEXT_DISPLAY] select
if (_level <= _defaultLoglevel) then {
private ["_prefix", "_message"];
switch (_level) do {
case 0: {_prefix = "Error"};
case 1: {_prefix = "Warn"};
case 2: {_prefix = "Debug"};
case 3: {_prefix = "Info"};
default {_prefix = "Unknown"};
};
_prefix = ["Error", "Warn", "Debug", "Info"] select (_level min 3);
_message = format ["[ACE %1] %2", _prefix, _msg];