Update sample config with information on logging levels
Update the query executor to log a message using the style guide. The actual message is static and the query is now in a context field.pull/9471/head
parent
43c17cf4ff
commit
426b6ee151
|
@ -292,7 +292,9 @@
|
||||||
# logfmt.
|
# logfmt.
|
||||||
# format = "auto"
|
# format = "auto"
|
||||||
|
|
||||||
# Determines which level of logs will be emitted.
|
# Determines which level of logs will be emitted. The available levels
|
||||||
|
# are error, warn, info, and debug. Logs that are equal to or above the
|
||||||
|
# specified level will be emitted.
|
||||||
# level = "info"
|
# level = "info"
|
||||||
|
|
||||||
# Suppresses the logo output that is printed when the program is started.
|
# Suppresses the logo output that is printed when the program is started.
|
||||||
|
|
|
@ -382,7 +382,7 @@ LOOP:
|
||||||
|
|
||||||
// Log each normalized statement.
|
// Log each normalized statement.
|
||||||
if !ctx.Quiet {
|
if !ctx.Quiet {
|
||||||
e.Logger.Info(stmt.String())
|
e.Logger.Info("Executing query", zap.Stringer("query", stmt))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send any other statements to the underlying statement executor.
|
// Send any other statements to the underlying statement executor.
|
||||||
|
|
Loading…
Reference in New Issue