diff --git a/framework/performance/functions/fn_addEmptyGroupCleanupPFH.sqf b/framework/performance/functions/fn_addEmptyGroupCleanupPFH.sqf index 9c17f7c..8495d3b 100644 --- a/framework/performance/functions/fn_addEmptyGroupCleanupPFH.sqf +++ b/framework/performance/functions/fn_addEmptyGroupCleanupPFH.sqf @@ -10,31 +10,39 @@ GVAR(emptyGroupCleanupPFH) = [ { { - if (local _x) then { - if ((count units _x) == 0) then { + if ((count units _x) == 0) then { + if (local _x) then { [ LEVEL_INFO, QUOTE(COMPONENT), - format["Deleting local empty group %1", groupId _x], - [] + "DELETING EMPTY GROUP", + [ + ["groupId", groupId _x], + ["netId", netId _x] + ] ] call EFUNC(common,log); deleteGroup _x; - }; - } else { - if (isServer) then { - [ - LEVEL_INFO, - QUOTE(COMPONENT), - format["Cannot delete group %1 as owner is %2", groupId _x, owner _x], - [] - ] call EFUNC(common,log); } else { - [ - LEVEL_INFO, - QUOTE(COMPONENT), - format["Cannot delete group %1 as owner is %2", groupId _x, groupOwner _x], - [] - ] call EFUNC(common,log); + if (isServer) then { + [ + LEVEL_INFO, + QUOTE(COMPONENT), + "NON LOCAL EMPTY GROUP", + [ + ["groupId", groupId _x], + ["groupOwner", groupOwner _x] + ] + ] call EFUNC(common,log); + } else { + [ + LEVEL_INFO, + QUOTE(COMPONENT), + "EMPTY REMOTE GROUP", + [ + ["groupId", groupId _x] + ] + ] call EFUNC(common,log); + }; }; }; } forEach allGroups; @@ -61,6 +69,3 @@ GVAR(emptyGroupCleanupPFH) = [ { not (missionNamespace getVariable [QGVAR(emptyGroupCleanup_enable), false]) }, [] ] call CBA_fnc_createPerFrameHandlerObject; - - -