Skip to content
This repository was archived by the owner on May 24, 2022. It is now read-only.

Commit 4a0df4a

Browse files
authored
Merge pull request #32 from acemod/updateLogMacros
Update to new CBA logging macros
2 parents c262745 + fa62235 commit 4a0df4a

File tree

8 files changed

+10
-13
lines changed

8 files changed

+10
-13
lines changed

addons/headless/functions/fnc_handleConnectHC.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if (!GVAR(Enabled) || {_headlessClient in GVAR(headlessClients)}) exitWith {};
2929
GVAR(headlessClients) pushBack _headlessClient;
3030

3131
if (GVAR(Log)) then {
32-
ACE_LOGINFO_1("Registered HC: %1",_headlessClient);
32+
INFO_1("Registered HC: %1",_headlessClient);
3333
};
3434

3535
// Rebalance

addons/headless/functions/fnc_handleDisconnect.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ if !(_object in GVAR(headlessClients)) exitWith {
4949
GVAR(headlessClients) deleteAt (GVAR(headlessClients) find _object);
5050

5151
if (GVAR(Log)) then {
52-
ACE_LOGINFO_1("Removed HC: %1",_object);
52+
INFO_1("Removed HC: %1",_object);
5353
};
5454

5555
// Rebalance

addons/headless/functions/fnc_moduleInit.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ if (!_activated) exitWith {};
2525
[_logic, QGVAR(endMission), "endMission"] call ACEFUNC(common,readSettingFromModule);
2626
[_logic, QGVAR(log), "log"] call ACEFUNC(common,readSettingFromModule);
2727

28-
ACE_LOGINFO("Headless Module Initialized.");
28+
INFO("Headless Module Initialized.");

addons/headless/functions/fnc_transferGroups.sqf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ GVAR(headlessClients) params [
2424
];
2525

2626
if (GVAR(Log)) then {
27-
ACE_LOGINFO_2("Present HCs: %1 - Full Rebalance: %2", GVAR(headlessClients), _force);
27+
INFO_2("Present HCs: %1 - Full Rebalance: %2", GVAR(headlessClients), _force);
2828
};
2929

3030
// Enable round-robin load balancing if more than one HC is present
@@ -130,7 +130,7 @@ private _numTransferredHC3 = 0;
130130

131131
if (GVAR(Log)) then {
132132
private _numTransferredTotal = _numTransferredHC1 + _numTransferredHC2 + _numTransferredHC3;
133-
ACE_LOGINFO_4("Groups Transferred: Total: %1 - HC1: %2 - HC2: %3 - HC3: %4", _numTransferredTotal, _numTransferredHC1, _numTransferredHC2, _numTransferredHC3);
133+
INFO_4("Groups Transferred: Total: %1 - HC1: %2 - HC2: %3 - HC3: %4", _numTransferredTotal, _numTransferredHC1, _numTransferredHC2, _numTransferredHC3);
134134
};
135135

136136
// Allow rebalance flag

addons/main/script_macros.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#include "\z\ace\addons\main\script_macros.hpp"
22

3-
#undef ACE_LOGFORMAT
4-
#define ACE_LOGFORMAT(module,level,message) FORMAT_2(QUOTE([ACEX] (module) %1: %2),level,message)
5-
63
#define ACE_PREFIX ace
74

85
#define ACEGVAR(module,var) TRIPLES(ACE_PREFIX,module,var)

addons/sitting/functions/fnc_moduleInit.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ if (!_activated) exitWith {};
2222

2323
[_logic, QGVAR(enable), "enable"] call ACEFUNC(common,readSettingFromModule);
2424

25-
ACE_LOGINFO("Sitting Module Initialized.");
25+
INFO("Sitting Module Initialized.");

addons/viewrestriction/XEH_clientInit.sqf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ if !(hasInterface) exitWith {};
1515
{GVAR(modeSelectiveSea) == 0}/* &&
1616
{GVAR(modeSelectiveUAV) == 0}*/
1717
) exitWith {
18-
ACE_LOGWARNING("Selective mode enabled, but all sub-modes are disabled.")
18+
WARNING("Selective mode enabled, but all sub-modes are disabled.")
1919
};
2020

2121
// Exit if third person view is not available
2222
if (difficultyOption "thirdPersonView" == 0) exitWith {
23-
ACE_LOGWARNING("View Restriction is enabled, but 3rd person is disabled with server difficulty.");
23+
WARNING("View Restriction is enabled, but 3rd person is disabled with server difficulty.");
2424
};
2525

2626
// Add Event Handler for changing camera - also happens on spawn

addons/viewrestriction/functions/fnc_moduleInit.sqf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ if (GVAR(mode) == 3) then {
2828
[_logic, QGVAR(modeSelectiveSea), "modeSelectiveSea"] call ACEFUNC(common,readSettingFromModule);
2929
//[_logic, QGVAR(modeSelectiveUAV), "modeSelectiveUAV"] call ACEFUNC(common,readSettingFromModule); // Disabled - Reference comment in FUNC(canChangeCamera)
3030

31-
ACE_LOGINFO_5("View Restriction Module Initialized. Mode: %1 (Foot: %2, Land: %3, Air: %4, Sea: %5)",GVAR(mode),GVAR(modeSelectiveFoot),GVAR(modeSelectiveLand), GVAR(modeSelectiveAir),GVAR(modeSelectiveSea));
31+
INFO_5("View Restriction Module Initialized. Mode: %1 (Foot: %2, Land: %3, Air: %4, Sea: %5)",GVAR(mode),GVAR(modeSelectiveFoot),GVAR(modeSelectiveLand), GVAR(modeSelectiveAir),GVAR(modeSelectiveSea));
3232
} else {
33-
ACE_LOGINFO_1("View Restriction Module Initialized. Mode: %1",GVAR(mode));
33+
INFO_1("View Restriction Module Initialized. Mode: %1",GVAR(mode));
3434
};

0 commit comments

Comments
 (0)