Skip to content

Commit

Permalink
Fix incorrect data output for plugin query_logger (#601)
Browse files Browse the repository at this point in the history
Update query_logger.rs

Pool and user were incorrectly swapped and needed to be fixed.
  • Loading branch information
kevinelliott authored Sep 26, 2023
1 parent 037d232 commit 04e9814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/query_logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl<'a> Plugin for QueryLogger<'a> {
.map(|q| q.to_string())
.collect::<Vec<String>>()
.join("; ");
info!("[pool: {}][user: {}] {}", self.user, self.db, query);
info!("[pool: {}][user: {}] {}", self.db, self.user, query);

Ok(PluginOutput::Allow)
}
Expand Down

0 comments on commit 04e9814

Please sign in to comment.