summaryrefslogtreecommitdiff
path: root/third_party/srtp/pjlib/srtp_err.c
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/srtp/pjlib/srtp_err.c')
-rw-r--r--third_party/srtp/pjlib/srtp_err.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/third_party/srtp/pjlib/srtp_err.c b/third_party/srtp/pjlib/srtp_err.c
index 50542407..8a92c56b 100644
--- a/third_party/srtp/pjlib/srtp_err.c
+++ b/third_party/srtp/pjlib/srtp_err.c
@@ -32,12 +32,14 @@ void
err_report(int priority, char *format, ...) {
va_list args;
+#if PJ_LOG_MAX_LEVEL >= 1
if (priority <= err_level) {
va_start(args, format);
pj_log("libsrtp", priority, format, args);
va_end(args);
}
+#endif
}
void