static int debug = (LOG_LEVEL_FATAL | LOG_LEVEL_ERROR);
/* static functions */
-static void fatal_error(const char * error_message);
+static void fatal_error(const char *error_message);
#ifdef _WIN32
static char *w32_socket_strerr(int errcode, char *tmp_buf);
#endif
case LOG_LEVEL_CONNECT:
log_level_string = "Connect";
break;
- case LOG_LEVEL_TAGGING:
+ case LOG_LEVEL_TAGGING:
log_level_string = "Tagging";
break;
case LOG_LEVEL_WRITING:
char outbuf[LOG_BUFFER_SIZE+1];
char tempbuf[LOG_BUFFER_SIZE];
size_t length = 0;
- const char * src = fmt;
+ const char *src = fmt;
long thread_id;
char timestamp[30];
const size_t log_buffer_size = LOG_BUFFER_SIZE;
#if defined(_WIN32) && !defined(_WIN_CONSOLE)
/*
- * Irrespective of debug setting, a GET/POST/CONNECT makes
- * the taskbar icon animate. (There is an option to disable
- * this but checking that is handled inside LogShowActivity()).
+ * Irrespective of debug setting, a request makes the taskbar icon
+ * animate. (There is an option to disable this but checking that is
+ * handled inside LogShowActivity()).
*/
- if ((loglevel == LOG_LEVEL_REQUEST) || (loglevel == LOG_LEVEL_CRUNCH))
+ if (loglevel == LOG_LEVEL_REQUEST)
{
LogShowActivity();
}
#endif
if (loglevel == LOG_LEVEL_FATAL)
{
- fatal_error("Fatal error. You're not supposed to"
- "see this message. Please file a bug report.");
+ fatal_error("Fatal error. You're not supposed to "
+ "see this message. Please file a bug report.\n");
}
return;
}