Skip to content

Commit

Permalink
refactor: log/logutil: move LogfmtString() to mogox
Browse files Browse the repository at this point in the history
  • Loading branch information
grokify committed Nov 20, 2023
1 parent b4dbf2e commit 971ee8b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ require (
github.com/ProtonMail/go-crypto v0.0.0-20230923063757-afb1ddc0824c
github.com/buger/jsonparser v1.1.1
github.com/caarlos0/env/v6 v6.10.1
github.com/go-logfmt/logfmt v0.6.0
github.com/google/go-querystring v1.1.0
github.com/grokify/base36 v1.0.5
github.com/grokify/bitcoinmath v0.1.0
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ github.com/cockroachdb/apd v1.1.0/go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMe
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4=
github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs=
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
Expand Down
6 changes: 3 additions & 3 deletions log/logutil/logutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
package logutil

import (
"bufio"
"bytes"
"log"

"github.com/go-logfmt/logfmt"
// "github.com/go-logfmt/logfmt"
"github.com/grokify/mogo/errors/errorsutil"
)

Expand All @@ -32,6 +30,7 @@ func PrintlnErr(err error, wrap ...string) {
}
}

/*
func LogfmtString(m map[string][]string) (string, error) {
var buf bytes.Buffer
w := bufio.NewWriter(&buf)
Expand All @@ -48,3 +47,4 @@ func LogfmtString(m map[string][]string) (string, error) {
}
return buf.String(), nil
}
*/

0 comments on commit 971ee8b

Please sign in to comment.