From 42375f3334a0f1353b0fd55fc03726c7c54faba8 Mon Sep 17 00:00:00 2001 From: folex <0xdxdy@gmail.com> Date: Tue, 27 Oct 2020 16:47:05 +0300 Subject: [PATCH] Fix log filtering: set log::Record::target in log_utf8_string (#38) --- fluence-faas/src/misc/log_utf8_string_impl.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/fluence-faas/src/misc/log_utf8_string_impl.rs b/fluence-faas/src/misc/log_utf8_string_impl.rs index 41e0450b..2b545531 100644 --- a/fluence-faas/src/misc/log_utf8_string_impl.rs +++ b/fluence-faas/src/misc/log_utf8_string_impl.rs @@ -44,6 +44,7 @@ pub(super) fn log_utf8_string( .args(format_args!("{}", msg)) .level(level) .module_path(module.into()) + .target(module) .build(), ), None => log::warn!("logger: incorrect UTF8 string's been supplied to logger"),