Don’t log context auth data

This commit is contained in:
Tobie Morgan Hitchcock 2018-02-14 15:48:55 +00:00
parent b4dfaf2898
commit 87cf68b213

View file

@ -119,7 +119,6 @@ func (e *executor) execute(ctx context.Context, ast *sql.Query) {
log := log.WithPrefix("sql").WithFields(map[string]interface{}{
"id": ctx.Value(ctxKeyId),
"kind": ctx.Value(ctxKeyKind),
"auth": ctx.Value(ctxKeyAuth),
})
if stm, ok := stm.(sql.AuthableStatement); ok {