1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-01 02:49:10 +00:00

(svn r20975) -Add: logging of console output for remote admins (dihedral)

This commit is contained in:
rubidium
2010-10-17 17:43:01 +00:00
parent ad12a91cda
commit a5d414a734
6 changed files with 49 additions and 1 deletions

View File

@@ -20,7 +20,7 @@
#include <time.h>
#if defined(ENABLE_NETWORK)
#include "network/core/os_abstraction.h"
#include "network/network_admin.h"
SOCKET _debug_socket = INVALID_SOCKET;
#endif /* ENABLE_NETWORK */
@@ -94,6 +94,7 @@ static void debug_print(const char *dbg, const char *buf)
#else
fprintf(stderr, "%sdbg: [%s] %s\n", GetLogPrefix(), dbg, buf);
#endif
NetworkAdminConsole(dbg, buf);
IConsoleDebug(dbg, buf);
} else {
static FILE *f = FioFOpenFile("commands-out.log", "wb", AUTOSAVE_DIR);