We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dec0ed1 commit d901694Copy full SHA for d901694
sqlx-core/src/postgres/connection/stream.rs
@@ -146,12 +146,13 @@ impl PgStream {
146
PgSeverity::Log => Level::Trace,
147
};
148
149
- if lvl <= log::STATIC_MAX_LEVEL && lvl <= log::max_level() {
+ if log::log_enabled!(target: "sqlx::postgres::notice", lvl) {
150
log::logger().log(
151
&log::Record::builder()
152
.args(format_args!("{}", notice.message()))
153
.level(lvl)
154
.module_path_static(Some("sqlx::postgres::notice"))
155
+ .target("sqlx::postgres::notice")
156
.file_static(Some(file!()))
157
.line(Some(line!()))
158
.build(),
0 commit comments