diff options
author | Luke Bratch <luke@bratch.co.uk> | 2019-05-15 21:28:06 +0100 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2019-05-15 21:28:06 +0100 |
commit | bc80d20a91ca455360df811907ba0fc7c850474c (patch) | |
tree | a3f7e180f34bfcf99dd2a7afb6a7f2796e235887 /replay.c | |
parent | 28a97bb389434f88579473fa7a5d1a6e4846bd4d (diff) |
Remove excessive replay log debug messages.
Diffstat (limited to 'replay.c')
-rw-r--r-- | replay.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -76,11 +76,9 @@ void formattime(char *str) { char timestampf[TIMELEN]; // Formatted timestamp // Convert into [HH:MM:SS] strftime(timestampf, TIMELEN, "[%H:%M:%S]", &tm); - printf("Formatted time string: '%s'.\n", timestampf); // Strip the original unixtimestamp striptimestamp(str); - printf("Now got '%s' and '%s'.\n", timestampf, str); // Take note of the length int len = strlen(str); @@ -91,7 +89,6 @@ void formattime(char *str) { if ((ret = strstr(str, "PRIVMSG")) != NULL) { // Position within str of "PRIVMSG" pos1 = ret - str; - printf("Found 'PRIVMSG' at position '%d' of '%s'.\n", pos1, str); } else { // If it's not a PRIVMSG, stop here return; @@ -103,7 +100,6 @@ void formattime(char *str) { if ((ret2 = strstr(ret, ":")) != NULL) { // Position within ret of ":" pos2 = ret2 - ret; - printf("Found ':' at position '%d' of '%s'.\n", pos2, ret); } else { // Didn't find the real message, weird. return; @@ -138,8 +134,6 @@ void formattime(char *str) { // Copy the whole thing back to str and null terminate strncpy(str, newline, len + TIMELEN); str[len + TIMELEN] = '\0'; - - printf("Ended up with replay string of: '%s'.\n", str); } // Return the number of lines in the replay log since 'seconds' seconds ago, or -1 if there a problem. @@ -170,8 +164,6 @@ int replaylines(int seconds) { return -1; } - printf("Timestamp is: '%d'.\n", timestamp); - // If the line is within range of the requested time, count it if (timestamp > timenow - seconds) { numlines++; @@ -205,7 +197,6 @@ int readreplayline(int seconds, int linenum, char *str) { int timenow = (int)time(NULL); while (fgets(line, MAXCHAR, fp) != NULL) { - printf("Read: '%s'.\n", line); // Read the timestamp from each line int timestamp = gettimestamp(line); if (timestamp < 1) { |