mirror of
https://github.com/IT07/a3_vemf_reloaded.git
synced 2024-08-30 16:52:11 +00:00
Added additional info about log type
This commit is contained in:
parent
16cd0e8b5c
commit
1b1c6c3af9
@ -22,13 +22,13 @@ if ("debugMode" call VEMFr_fnc_getSetting > 0) then
|
|||||||
_type = param [1, 3, [0]];
|
_type = param [1, 3, [0]];
|
||||||
_line = param [2, "", [""]];
|
_line = param [2, "", [""]];
|
||||||
|
|
||||||
_doLog = { diag_log text format["IT07: [exile_vemf_reloaded] %1 -- %2", _prefix, _line] };
|
_doLog = { diag_log text format["IT07: [exile_vemf_reloaded] %1 -- %2: %3", _prefix, _this, _line] };
|
||||||
_debugMode = "debugMode" call VEMFr_fnc_getSetting;
|
_debugMode = "debugMode" call VEMFr_fnc_getSetting;
|
||||||
if (_type isEqualTo 0) then
|
if (_type isEqualTo 0) then
|
||||||
{
|
{
|
||||||
if (_debugMode isEqualTo 1 OR _debugMode isEqualTo 3) then
|
if (_debugMode isEqualTo 1 OR _debugMode isEqualTo 3) then
|
||||||
{
|
{
|
||||||
call _doLog;
|
"ERROR" call _doLog;
|
||||||
breakOut "outer";
|
breakOut "outer";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -36,13 +36,13 @@ if ("debugMode" call VEMFr_fnc_getSetting > 0) then
|
|||||||
{
|
{
|
||||||
if (_debugMode isEqualTo 2 OR _debugMode isEqualTo 3) then
|
if (_debugMode isEqualTo 2 OR _debugMode isEqualTo 3) then
|
||||||
{
|
{
|
||||||
call _doLog;
|
"INFO" call _doLog;
|
||||||
breakOut "outer";
|
breakOut "outer";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
if (_type isEqualTo 2) then // This bypasses _debugMode setting. Always logs given params even if debugMode is set to 0
|
if (_type isEqualTo 2) then // This bypasses _debugMode setting. Always logs given params even if debugMode is set to 0
|
||||||
{
|
{
|
||||||
call _doLog;
|
"SYSTEM" call _doLog;
|
||||||
breakOut "outer";
|
breakOut "outer";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user