1.1 --- a/core/DebugReporter.cpp Sun Aug 10 05:39:25 2008 +0000
1.2 +++ b/core/DebugReporter.cpp Fri Aug 15 05:22:26 2008 +0000
1.3 @@ -41,6 +41,18 @@
1.4 g_pSourcePawn->SetDebugListener(this);
1.5 }
1.6
1.7 +void DebugReport::OnDebugSpew(const char *msg, ...)
1.8 +{
1.9 + va_list ap;
1.10 + char buffer[512];
1.11 +
1.12 + va_start(ap, msg);
1.13 + UTIL_FormatArgs(buffer, sizeof(buffer), msg, ap);
1.14 + va_end(ap);
1.15 +
1.16 + g_Logger.LogMessage("[SM] %s", buffer);
1.17 +}
1.18 +
1.19 void DebugReport::GenerateError(IPluginContext *ctx, cell_t func_idx, int err, const char *message, ...)
1.20 {
1.21 va_list ap;