ready for dedi -- improvements to resupply, triageIcons too
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Function: milsim_util_fnc_log
|
||||
Function: milsim_common_fnc_log
|
||||
|
||||
Description:
|
||||
Used to log messages to the server RPT file.
|
||||
@@ -19,13 +19,13 @@ params [
|
||||
["_data", [], [[]]]
|
||||
];
|
||||
|
||||
if (_logLevel < LOG_LEVEL) exitWith {};
|
||||
if (_logLevel < DEBUG_MODE) exitWith {};
|
||||
|
||||
private _hash = createHashMapFromArray _data;
|
||||
|
||||
// Replace square brackets with round brackets to avoid parsing issues.
|
||||
_message regexReplace ["\[", "("];
|
||||
_message regexReplace ["\]", ")"];
|
||||
_message regexReplace ['(\[)', "("];
|
||||
_message regexReplace ['(\])', ")"];
|
||||
|
||||
private _json = [_hash] call CBA_fnc_encodeJSON;
|
||||
_log = format ["[%1] [%2] [%3] [%4] :: %5", QUOTE(PREFIX), _component, _fnc_scriptNameParent, _message, _json];
|
||||
|
||||
Reference in New Issue
Block a user