Skip to content

Commit 898254a

Browse files
vpellanericfirth
authored andcommitted
Fix error during error logging
1 parent 515f625 commit 898254a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/libdatadog_api/library_config.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ static inline bool is_config_loaded(void) {
1313

1414
static inline VALUE log_warning_without_config(VALUE warning) {
1515
VALUE datadog_module = rb_const_get(rb_cObject, rb_intern("Datadog"));
16-
VALUE logger = rb_funcall(datadog_module, rb_intern("logger_without_configuration"), 0);
16+
// We only log warnings here so we don't care about logging debug logs or not, hence we pass Qnil
17+
VALUE logger = rb_funcall(datadog_module, rb_intern("logger_without_configuration"), 1, Qnil);
1718

1819
return rb_funcall(logger, rb_intern("warn"), 1, warning);
1920
}

0 commit comments

Comments
 (0)