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:
#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();
}
#ifdef FUZZ
if (debug == LOG_LEVEL_STFU)
{
+ if (loglevel == LOG_LEVEL_FATAL)
+ {
+ exit(1);
+ }
return;
}
#endif
int ret = snprintf(outbuf + length,
log_buffer_size - length - 2, "\\x%.2x", (unsigned char)*sval);
assert(ret == 4);
- length += 4;
+ if (ret == 4)
+ {
+ length += 4;
+ }
}
sval++;
}