Browse Source

Update game logging

Intercept WS messages for consistent logs like in the server.
master
TheoryOfNekomata 1 year ago
parent
commit
3a5ac14e59
2 changed files with 3 additions and 0 deletions
  1. +2
    -0
      src/packages/game/IZ_app.c
  2. +1
    -0
      src/packages/game/IZ_app.h

+ 2
- 0
src/packages/game/IZ_app.c View File

@@ -26,6 +26,8 @@ typedef enum {
} IZ_AppInitializeResult;

IZ_AppInitializeResult IZ_AppInitialize(struct IZ_App* app, u8 argc, const char* argv[]) {
IZ_LogInterceptWSMessages(LLL_USER | LLL_ERR | LLL_WARN | LLL_NOTICE);

IZ_LogInfo(IZ_LOG_CATEGORY_GLOBAL, "Starting %s...", IZ_APP_NAME);
IZ_memset(app, 0, sizeof(struct IZ_App));



+ 1
- 0
src/packages/game/IZ_app.h View File

@@ -10,6 +10,7 @@
#include "IZ_app_net.h"
#include "IZ_app_video.h"
#include "../log/IZ_log.h"
#include "../log/IZ_intercept.h"
#include "../string/IZ_string.h"
#include "../timer/IZ_timer.h"



Loading…
Cancel
Save