Merge pull request #555 from NWilson/zapadapter-types
Use zap.Any for handling interface{} -> zap.Field conversion
This commit is contained in:
@@ -19,7 +19,7 @@ func (pl *Logger) Log(level pgx.LogLevel, msg string, data map[string]interface{
|
||||
fields := make([]zapcore.Field, len(data))
|
||||
i := 0
|
||||
for k, v := range data {
|
||||
fields[i] = zap.Reflect(k, v)
|
||||
fields[i] = zap.Any(k, v)
|
||||
i++
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user