about summary refs log tree commit diff stats
path: root/src/chat_log.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-08-22 00:30:24 +0100
committerJames Booth <boothj5@gmail.com>2012-08-22 00:30:24 +0100
commit4dbd8bbefac5ad695271541cc186fa3e1db984e8 (patch)
tree7ed6fa9163b59bb774b9aa1f21617c2e15020900 /src/chat_log.c
parentb30662fef76564f53ea503f0aeea8f738310fdf6 (diff)
downloadprofani-tty-4dbd8bbefac5ad695271541cc186fa3e1db984e8.tar.gz
Added some logging and updated man page
Diffstat (limited to 'src/chat_log.c')
-rw-r--r--src/chat_log.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/chat_log.c b/src/chat_log.c
index 56240787..955e49ad 100644
--- a/src/chat_log.c
+++ b/src/chat_log.c
@@ -28,6 +28,7 @@
 #include "chat_log.h"
 #include "common.h"
 #include "util.h"
+#include "log.h"
 
 static GHashTable *logs;
 static GTimeZone *tz;
@@ -37,6 +38,7 @@ static void _close_file(gpointer key, gpointer value, gpointer user_data);
 void
 chat_log_init(void)
 {
+    log_msg(PROF_LEVEL_INFO, "prof", "Initialising chat logs");
     tz = g_time_zone_new_local();
     logs = g_hash_table_new(NULL, (GEqualFunc) g_strcmp0);
 }
@@ -86,6 +88,7 @@ chat_log_chat(const char * const login, char *other,
 void
 chat_log_close(void)
 {
+    log_msg(PROF_LEVEL_INFO, "prof", "Closing down chat logs");
     g_hash_table_foreach(logs, (GHFunc) _close_file, NULL);
     g_time_zone_unref(tz);
 }