Skip to content

Commit

Permalink
Use LOG_SYS for warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Dec 20, 2019
1 parent b02f178 commit a0d5b8e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion addons/xeh/fnc_addClassEventHandler.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ private _config = configFile >> "CfgVehicles" >> _className;

// init fallback loop when executing on incompatible class for the first time
if (!GVAR(fallbackRunning) && {ISINCOMP(_className)}) then {
WARNING_1("One or more children of class %1 do not support Extended Event Handlers. Fall back to loop.", configName _config);
LOG_SYS("WARNING",FORMAT_1("One or more children of class ""%1"" do not support Extended Event Handlers. Fall back to loop.", configName _config));
call CBA_fnc_startFallbackLoop;
};

Expand Down
2 changes: 1 addition & 1 deletion addons/xeh/fnc_compileEventHandlers.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ if (_allowRecompile) then {
if (_eventName == "fired") then {
// generate backwards compatible format of _this
_eventFuncBase = "private _this = [_this select 0, _this select 1, _this select 2, _this select 3, _this select 4, _this select 6, _this select 5];";
WARNING_4("Usage of deprecated Extended Event Handler ""fired"". Use ""firedBIS"" instead. Path: %1\%2\%3\%4.", configSourceMod _x, _baseConfig, XEH_FORMAT_CONFIG_NAME(_eventName), _className);
LOG_SYS("WARNING",FORMAT_4("Usage of deprecated Extended Event Handler ""fired"". Use ""firedBIS"" instead. Path: %1\%2\%3\%4.", configSourceMod _x, _baseConfig, XEH_FORMAT_CONFIG_NAME(_eventName), _className));
};

{
Expand Down
4 changes: 2 additions & 2 deletions addons/xeh/fnc_preStart.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ with uiNamespace do {
_x params ["_classname", "_addon"];

if (_addon == "") then {
WARNING_1("%1 does not support Extended Event Handlers!", _classname);
LOG_SYS("WARNING",FORMAT_1("%1 does not support Extended Event Handlers!", _classname));
} else {
WARNING_2("%1 does not support Extended Event Handlers! Addon: %2", _classname, _addon);
LOG_SYS("WARNING",FORMAT_2("%1 does not support Extended Event Handlers! Addon: %2", _classname, _addon));
};
} forEach (true call CBA_fnc_supportMonitor);

Expand Down

0 comments on commit a0d5b8e

Please sign in to comment.