diff options
author | rubidium <rubidium@openttd.org> | 2010-10-17 17:43:01 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-10-17 17:43:01 +0000 |
commit | a5d414a73490d290965f714ccc3ab556ffa4bc7e (patch) | |
tree | 76cd7149e81bbd4af5f1693458d7268e6fd66795 /src/debug.cpp | |
parent | ad12a91cdae152aff87404dce7718706b91d5cb4 (diff) | |
download | openttd-a5d414a73490d290965f714ccc3ab556ffa4bc7e.tar.xz |
(svn r20975) -Add: logging of console output for remote admins (dihedral)
Diffstat (limited to 'src/debug.cpp')
-rw-r--r-- | src/debug.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/debug.cpp b/src/debug.cpp index dea87850f..965ed5d1b 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -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); |