mirror of https://github.com/VinGarcia/ksql.git
Minor improvement to ksql.Logger output
parent
7edbd04ceb
commit
8d57a16f9c
|
@ -56,7 +56,14 @@ func (l LogValues) MarshalJSON() ([]byte, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
out.Query = l.Query
|
out.Query = l.Query
|
||||||
|
|
||||||
out.Params = l.Params
|
out.Params = l.Params
|
||||||
|
|
||||||
|
// Force it to print Params: [], instead of Params: null
|
||||||
|
if out.Params == nil {
|
||||||
|
out.Params = []interface{}{}
|
||||||
|
}
|
||||||
|
|
||||||
if l.Err != nil {
|
if l.Err != nil {
|
||||||
out.Err = l.Err.Error()
|
out.Err = l.Err.Error()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue