Don't log if we don't have a callback
Tested-by: Build Bot
Tested-by: Ellis Breen
@@ -163,6 +163,8 @@ void lcb_log(const struct lcb_settings_st *settings, const char *subsys, int sev
callback = settings->logger->v.v0.callback;
+ if (!callback) return;
+
va_start(ap, fmt);
callback(settings->logger, settings->iid, subsys, severity, srcfile, srcline, fmt, ap);
va_end(ap);
