diff --git a/main.go b/main.go index 79aaacc42b35..3e2047dbc02f 100644 --- a/main.go +++ b/main.go @@ -5,12 +5,12 @@ import ( "fmt" "io/ioutil" "log" + "os" "runtime" + "runtime/pprof" "strconv" "strings" "time" - "os" - "runtime/pprof" "github.com/BurntSushi/toml" "github.com/akrennmair/gopcap" @@ -189,7 +189,7 @@ func debugMemStats() { var m runtime.MemStats runtime.ReadMemStats(&m) DEBUG("mem", "Memory stats: In use: %d Total (even if freed): %d System: %d", - m.Alloc, m.TotalAlloc, m.Sys) + m.Alloc, m.TotalAlloc, m.Sys) } func main() { diff --git a/pgsql.go b/pgsql.go index 406654d41bc2..d0aaa8db9435 100644 --- a/pgsql.go +++ b/pgsql.go @@ -656,9 +656,9 @@ func receivedPgsqlRequest(msg *PgsqlMessage) { } trans.Pgsql = bson.M{ - "query": query, + "query": query, "query.raw": query, - "method": getQueryMethod(query), + "method": getQueryMethod(query), } trans.Request_raw = query