Skip to content

Commit 822aafd

Browse files
committed
Improve logging
1 parent 44b3f45 commit 822aafd

File tree

7 files changed

+18
-7
lines changed

7 files changed

+18
-7
lines changed

source/@zeusops/addons/zeusops_addon/functions/fn_define_bodybag_player.sqf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
fn_bodybag_player = {
22
_type = if (isServer) then { "server" } else { format ["player: %1", name player] };
3-
format ["[ZOPS] [fn_bodybag_player] %1, params: %2", _type, _this joinString ", "] remoteExec ["diag_log", 2];
43
_logic = _this param [0,objNull];
4+
[_logic, _type] remoteExec ["fn_log_owner", 2];
5+
format ["[ZOPS] [fn_bodybag_player] %1, isNull: %2. clientOwner: %3, params: %4", _type, isNull _logic, clientOwner, _this joinString ", "] remoteExec ["diag_log", 2];
56

67
// Exit if module wasn't created by this instance
78
if (!local _logic) exitWith {

source/@zeusops/addons/zeusops_addon/functions/fn_define_bodybag_respawn.sqf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
fn_bodybag_respawn = {
22
_type = if (isServer) then { "server" } else { format ["player: %1", name player] };
3-
format ["[ZOPS] [fn_bodybag_respawn] %1, params: %2", _type, _this joinString ", "] remoteExec ["diag_log", 2];
43
_logic = _this param [0,objNull];
4+
[_logic, _type] remoteExec ["fn_log_owner", 2];
5+
format ["[ZOPS] [fn_bodybag_respawn] %1, isNull: %2. clientOwner: %3, params: %4", _type, isNull _logic, clientOwner, _this joinString ", "] remoteExec ["diag_log", 2];
56

67
// Exit if module wasn't created by this instance
78
if (!local _logic) exitWith {

source/@zeusops/addons/zeusops_addon/functions/fn_define_force_respawn.sqf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
fn_force_respawn = {
22
_type = if (isServer) then { "server" } else { format ["player: %1", name player] };
3-
format ["[ZOPS] [fn_force_respawn] %1, params: %2", _type, _this joinString ", "] remoteExec ["diag_log", 2];
43
_logic = _this param [0,objNull];
4+
[_logic, _type] remoteExec ["fn_log_owner", 2];
5+
format ["[ZOPS] [fn_force_respawn] %1, isNull: %2. clientOwner: %3, params: %4", _type, isNull _logic, clientOwner, _this joinString ", "] remoteExec ["diag_log", 2];
56

67
// Exit if module wasn't created by this instance
78
if (!local _logic) exitWith {

source/@zeusops/addons/zeusops_addon/functions/fn_define_move_respawn.sqf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
fn_move_respawn = {
22
_type = if (isServer) then { "server" } else { format ["player: %1", name player] };
3-
format ["[ZOPS] [fn_move_respawn] %1, params: %2", _type, _this joinString ", "] remoteExec ["diag_log", 2];
43
_logic = _this param [0,objNull];
4+
[_logic, _type] remoteExec ["fn_log_owner", 2];
5+
format ["[ZOPS] [fn_move_respawn] %1, isNull: %2. clientOwner: %3, params: %4", _type, isNull _logic, clientOwner, _this joinString ", "] remoteExec ["diag_log", 2];
56

67
// Exit if module wasn't created by this instance
78
if (!local _logic) exitWith {

source/@zeusops/addons/zeusops_addon/functions/fn_define_spawn_arsenal.sqf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
fn_log_owner = {
2+
params ["_object", "_type"];
3+
diag_log format ["[ZOPS] [log_owner] type: %1, owner: %2", _type, owner _object];
4+
};
15
fn_spawn_arsenal = {
26
_type = if (isServer) then { "server" } else { format ["player: %1", name player] };
3-
format ["[ZOPS] [fn_spawn_arsenal] %1, params: %2", _type, _this joinString ", "] remoteExec ["diag_log", 2];
47
_logic = _this param [0,objNull];
8+
[_logic, _type] remoteExec ["fn_log_owner", 2];
9+
format ["[ZOPS] [fn_spawn_arsenal] %1, isNull: %2. clientOwner: %3, params: %4", _type, isNull _logic, clientOwner, _this joinString ", "] remoteExec ["diag_log", 2];
510

611
// Exit if module wasn't created by this instance
712
if (!local _logic) exitWith {

source/@zeusops/addons/zeusops_addon/functions/fn_define_spawn_rearm.sqf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
fn_spawn_rearm = {
22
_type = if (isServer) then { "server" } else { format ["player: %1", name player] };
3-
format ["[ZOPS] [fn_spawn_rearm] %1, params: %2", _type, _this joinString ", "] remoteExec ["diag_log", 2];
43
_logic = _this param [0,objNull];
4+
[_logic, _type] remoteExec ["fn_log_owner", 2];
5+
format ["[ZOPS] [fn_spawn_rearm] %1, isNull: %2. clientOwner: %3, params: %4", _type, isNull _logic, clientOwner, _this joinString ", "] remoteExec ["diag_log", 2];
56

67
// Exit if module wasn't created by this instance
78
if (!local _logic) exitWith {

source/@zeusops/addons/zeusops_addon/functions/fn_define_toggle_respawn.sqf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
fn_toggle_respawn = {
22
_type = if (isServer) then { "server" } else { format ["player: %1", name player] };
3-
format ["[ZOPS] [fn_toggle_respawn] %1, params: %2", _type, _this joinString ", "] remoteExec ["diag_log", 2];
43
_logic = _this param [0,objNull];
4+
[_logic, _type] remoteExec ["fn_log_owner", 2];
5+
format ["[ZOPS] [fn_toggle_respawn] %1, isNull: %2. clientOwner: %3, params: %4", _type, isNull _logic, clientOwner, _this joinString ", "] remoteExec ["diag_log", 2];
56

67
// Exit if module wasn't created by this instance
78
if (!local _logic) exitWith {

0 commit comments

Comments
 (0)