Add support for the query headers.

This commit is contained in:
2021-10-02 20:22:00 +01:00
parent 7ad04d7750
commit 333ec58bd2
7 changed files with 33 additions and 28 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
package logging
import (
"fmt"
stdlog "log"
"os"
"time"
@@ -65,8 +66,8 @@ func log(contextLog *zerolog.Event, message string, v ...map[string]interface{})
if len(v) > 0 {
for _, m := range v {
for k, v := range m {
if !pandati.IsZero(v) {
contextLog.Str(k, v.(string))
if !pandati.IsZero(v) && !pandati.IsZero(k) {
contextLog.Str(k, fmt.Sprintf("%v", v))
}
}
}