summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--remoting/client/plugin/pepper_entrypoints.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/remoting/client/plugin/pepper_entrypoints.cc b/remoting/client/plugin/pepper_entrypoints.cc
index 00af8bf..c6923e3 100644
--- a/remoting/client/plugin/pepper_entrypoints.cc
+++ b/remoting/client/plugin/pepper_entrypoints.cc
@@ -41,8 +41,10 @@ int32_t PPP_InitializeModule(PP_Module module_id,
return PP_ERROR_FAILED;
}
- // Register a global log handler.
+#if !defined(NDEBUG)
+ // Register a global log handler, but only in Debug builds.
ChromotingInstance::RegisterLogMessageHandler();
+#endif
g_module_singleton = module;
return PP_OK;