tLogging functions now "work" properly in the client as well as in the server, and are used to report on plugin initialisation status; dopelog now takes one or more flags, LF_SERVER being the only one defined so far. - vaccinewars - be a doctor and try to vaccinate the world
git clone git://src.adamsgaard.dk/vaccinewars
Log
Files
Refs
README
LICENSE
---
commit 778c81e4d05a3fff2f5499ae50d14ee768211046
parent 147442dcbe60931edd8763928f6913c2cca6310f
Author: Ben Webb 
Date:   Fri, 24 May 2002 11:27:12 +0000

Logging functions now "work" properly in the client as well as in the server,
and are used to report on plugin initialisation status; dopelog now takes
one or more flags, LF_SERVER being the only one defined so far.


Diffstat:
  M src/curses_client/curses_client.c   |       2 +-
  M src/gui_client/gtk_client.c         |       2 +-

2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/curses_client/curses_client.c b/src/curses_client/curses_client.c
t@@ -2407,7 +2407,7 @@ void CursesLoop(void)
 
   /* Make the GLib log messages display nicely */
   g_log_set_handler(NULL,
-                    LogMask() | G_LOG_LEVEL_MESSAGE | G_LOG_LEVEL_WARNING,
+                    G_LOG_LEVEL_MESSAGE | G_LOG_LEVEL_WARNING,
                     LogMessage, NULL);
 
   SoundOpen(WantedPlugin);
diff --git a/src/gui_client/gtk_client.c b/src/gui_client/gtk_client.c
t@@ -2214,7 +2214,7 @@ gboolean GtkLoop(int *argc, char **argv[], gboolean ReturnOnFail)
 
   /* Have the GLib log messages pop up in a nice dialog box */
   g_log_set_handler(NULL,
-                    LogMask() | G_LOG_LEVEL_MESSAGE | G_LOG_LEVEL_WARNING |
+                    G_LOG_LEVEL_MESSAGE | G_LOG_LEVEL_WARNING |
                     G_LOG_LEVEL_CRITICAL, LogMessage, NULL);
 
   if (!CheckHighScoreFileConfig())