diff options
author | Luke Bratch <luke@bratch.co.uk> | 2020-10-21 23:08:50 +0100 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2020-10-21 23:08:50 +0100 |
commit | b09cbe8b3575ec018f7d73a0bcd751dba011fc72 (patch) | |
tree | f30b2774abd5f22539b200629350204111a41974 | |
parent | 6737c2ec911afd4a62d2961432ea8c784885e641 (diff) |
Improve debug output in readreplayline().
-rw-r--r-- | TODO | 3 | ||||
-rw-r--r-- | replay.c | 7 |
2 files changed, 4 insertions, 6 deletions
@@ -10,8 +10,6 @@ macOS compiler may need limits.h included in structures.h. "Starting log replay...." followed by "Unable to read replay log file!" even though replay seemed to work? -NAMES don't seem to be sent to clients (at least old irssi) after weird timeouts like slow QUIT processing. - When blabouncer reconnects to a server, clients (at least XChat) get stuck with just e.g. [13:14:50]* PONG LAG1574032890090568 [13:15:20]* PONG LAG1574032920149401 @@ -19,7 +17,6 @@ When blabouncer reconnects to a server, clients (at least XChat) get stuck with [13:16:20]* PONG LAG1574032980263198 [13:16:50]* PONG LAG1574033010319500 [13:17:20]* PONG LAG1574033040377501 -In channels with no nicks (no nicks bit may now be fixed - retest). Sometimes replaymode = "lastspoke" will replay the last message you sent if you spoke last and sometimes it doesn't - change to always include your last message? @@ -230,7 +230,7 @@ int readreplayline(int seconds, int linenum, char *str, struct settings *setting // Build path if (!snprintf(filename, PATH_MAX, "%s/replay.log", settings->basedir)) { - debugprint(DEBUG_CRIT, "debuglog(): Error while preparing replay path, exiting!\n"); + debugprint(DEBUG_CRIT, "readreplayline(): error: couldn't prepare replay path, exiting!\n"); exit(1); } @@ -239,7 +239,7 @@ int readreplayline(int seconds, int linenum, char *str, struct settings *setting fp = fopen(filename, "r"); if (fp == NULL) { - debugprint(DEBUG_CRIT, "error: readreplayline(): could not open replay log '%s'.\n", filename); + debugprint(DEBUG_CRIT, "readreplayline(): could not open replay log '%s'.\n", filename); return 0; } @@ -250,7 +250,7 @@ int readreplayline(int seconds, int linenum, char *str, struct settings *setting // Read the timestamp from each line int timestamp = gettimestamp(line); if (timestamp < 1) { - debugprint(DEBUG_CRIT, "readreplayline(): Error reading timestamp from replay log file.\n"); + debugprint(DEBUG_CRIT, "readreplayline(): error: reading timestamp from replay log file.\n"); fclose(fp); return 0; } @@ -282,6 +282,7 @@ int readreplayline(int seconds, int linenum, char *str, struct settings *setting } // If we got here something went wrong + debugprint(DEBUG_CRIT, "readreplayline(): error: reached the end of function (seconds %d, linenum %d)\n", seconds, linenum); fclose(fp); return 0; } |