Fix log filtering: set log::Record::target in log_utf8_string (#38)

This commit is contained in:
folex 2020-10-27 16:47:05 +03:00 committed by GitHub
parent eb5dfafa5e
commit 42375f3334
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,6 +44,7 @@ pub(super) fn log_utf8_string(
.args(format_args!("{}", msg)) .args(format_args!("{}", msg))
.level(level) .level(level)
.module_path(module.into()) .module_path(module.into())
.target(module)
.build(), .build(),
), ),
None => log::warn!("logger: incorrect UTF8 string's been supplied to logger"), None => log::warn!("logger: incorrect UTF8 string's been supplied to logger"),