Skip to content

Commit 4956654

Browse files
that-edwardDomT602
andauthored
Add diag_log to life_hc, as it's in life_server (#630)
Co-authored-by: DomT602 <32492434+DomT602@users.noreply.github.com>
1 parent 0149658 commit 4956654

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

life_hc/MySQL/Housing/fn_addHouse.sqf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ if (isNull _house || {_uid isEqualTo ""}) exitWith {};
1919
private _housePos = getPosATL _house;
2020

2121
private _query = format ["insertHouse:%1:%2", _uid, _housePos];
22+
if (EXTDB_SETTING(getNumber,"DebugMode") isEqualTo 1) then {
23+
diag_log format ["Query: %1",_query];
24+
};
25+
2226
[_query, 1] call HC_fnc_asyncCall;
2327

2428
uiSleep 0.3;

life_hc/MySQL/WantedSystem/fn_wantedFetch.sqf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ if (_units isEqualTo []) exitWith {[_list] remoteExec ["life_fnc_wantedList",_re
4242

4343
private _query = format ["selectWantedActiveID:%1", _inStatement];
4444
private _queryResult = [_query, 2, true] call HC_fnc_asyncCall;
45+
if (EXTDB_SETTING(getNumber,"DebugMode") isEqualTo 1) then {
46+
diag_log format ["Query: %1",_query];
47+
};
4548

4649
{
4750
_list pushBack _x;

0 commit comments

Comments
 (0)