aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/support/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/lib/support/log.c')
-rw-r--r--src/core/lib/support/log.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/lib/support/log.c b/src/core/lib/support/log.c
index 882abf673c..bae0957df7 100644
--- a/src/core/lib/support/log.c
+++ b/src/core/lib/support/log.c
@@ -96,4 +96,6 @@ void gpr_log_verbosity_init() {
}
}
-void gpr_set_log_function(gpr_log_func f) { g_log_func = f; }
+void gpr_set_log_function(gpr_log_func f) {
+ g_log_func = f ? f : gpr_default_log;
+}