From 86018dc23311e223a1d6139a3e898354de0e1c49 Mon Sep 17 00:00:00 2001 From: CodeCodon Date: Wed, 29 Jul 2015 10:22:49 -0500 Subject: [PATCH] only show localization warnings in debug mode --- .../library/serverScript/src/shared/ScriptMethodsString.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/server/library/serverScript/src/shared/ScriptMethodsString.cpp b/engine/server/library/serverScript/src/shared/ScriptMethodsString.cpp index 47a378f8..e8028233 100644 --- a/engine/server/library/serverScript/src/shared/ScriptMethodsString.cpp +++ b/engine/server/library/serverScript/src/shared/ScriptMethodsString.cpp @@ -100,11 +100,12 @@ jstring JNICALL ScriptMethodsStringNamespace::getString(JNIEnv *env, jobject sel JavaString result(localized); return result.getReturnValue(); } +#ifdef DEBUG else { WARNING(true, ("JavaLibrary::log failed to localize the stringId(%s, %s)", table.c_str(), asciiId.c_str())); } - +#endif return 0; } // JavaLibrary::getString