Log client ID/name in server desync logs

This commit is contained in:
Jonathan G Rennison
2022-01-14 18:44:29 +00:00
parent 29521ef883
commit 3892a1e201
3 changed files with 9 additions and 1 deletions

View File

@@ -24,6 +24,8 @@ struct DesyncExtraInfo {
};
Flags flags = DEIF_NONE;
const char *client_name = nullptr;
int client_id = -1;
FILE **log_file = nullptr; ///< save unclosed log file handle here
};
DECLARE_ENUM_AS_BIT_SET(DesyncExtraInfo::Flags)