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
Jonathan A. Sternberg 2018-02-21 11:25:38 -06:00
parent 43c17cf4ff
commit 426b6ee151
2 changed files with 4 additions and 2 deletions

View File

@ -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.

View File

@ -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.