From 4a8068d1c4926fe52dea05b13177ebaa6ca1dc5e Mon Sep 17 00:00:00 2001 From: Peace-Maker Date: Wed, 26 Oct 2016 23:48:56 -0600 Subject: [PATCH 1/2] Suppress logging of "Plugin not runnable" errors SourceMod itself and thirdparty extensions call functions in plugins without making sure it is runnable. The plugin pausing feature isn't supported anymore and is set to get nuked #438 which will reduce the amount of not-runnable error reports. We can't fix every third party extension, so suppressing the error from the logs will stop the spam until pausing is removed. #489 can be reverted after this. --- core/logic/DebugReporter.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/logic/DebugReporter.cpp b/core/logic/DebugReporter.cpp index 93fd5c41..fd34b14b 100644 --- a/core/logic/DebugReporter.cpp +++ b/core/logic/DebugReporter.cpp @@ -157,6 +157,12 @@ int DebugReport::_GetPluginIndex(IPluginContext *ctx) void DebugReport::ReportError(const IErrorReport &report, IFrameIterator &iter) { + // Don't log an error if a function wasn't runnable. + // This is necassary due to the way SM is handling and exposing + // scripted functions. It's too late to change that now. + if (report.Code() == SP_ERROR_NOT_RUNNABLE) + return; + const char *blame = nullptr; if (report.Blame()) { From 7907a076868221a982ef44bd617513fcf6b30ea3 Mon Sep 17 00:00:00 2001 From: Peace-Maker Date: Thu, 27 Oct 2016 00:42:20 -0600 Subject: [PATCH 2/2] Update to latest SourcePawn --- sourcepawn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sourcepawn b/sourcepawn index 836bb7a6..b570d45c 160000 --- a/sourcepawn +++ b/sourcepawn @@ -1 +1 @@ -Subproject commit 836bb7a6da1f88b3c795f11e88306c724ccef5dc +Subproject commit b570d45c2e1a482221186c6eae7e9a6b4964f061