mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 13:26:39 +03:00
Add better logging for server_deleteObj
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
[_objectID,_objectUID] call server_deleteObjDirect;
|
||||
[_objectID,_objectUID,_obj] call server_deleteObjDirect;
|
||||
*/
|
||||
private["_id","_uid","_key"];
|
||||
private ["_id","_uid","_key","_obj"];
|
||||
|
||||
_id = _this select 0;
|
||||
_uid = _this select 1;
|
||||
_obj = ["Object",typeof (_this select 2)] select (count _this > 2);
|
||||
|
||||
if (isServer) then {
|
||||
//remove from database
|
||||
@@ -12,11 +13,11 @@ if (isServer) then {
|
||||
//Send request
|
||||
_key = format["CHILD:304:%1:",_id];
|
||||
_key call server_hiveWrite;
|
||||
diag_log format["DELETE DIRECT: SERVER deleted object with ID: %1", _id];
|
||||
diag_log format["DELETE DIRECT: SERVER deleted %2 with ID: %1", _id, _obj];
|
||||
} else {
|
||||
//Send request
|
||||
_key = format["CHILD:310:%1:",_uid];
|
||||
_key call server_hiveWrite;
|
||||
diag_log format["DELETE DIRECT: SERVER deleted object with UID: %1", _uid];
|
||||
diag_log format["DELETE DIRECT: SERVER deleted %2 with UID: %1", _uid, _obj];
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user