mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 20:54:22 +01:00
structured logs
This commit is contained in:
1 parent
7919e15a65
commit
0d75136c1c
4 files changed
+87
-67
No files matched your search
@@ -1,13 +1,13 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
_ "fmt"
|
||||
"go.uber.org/zap"
|
||||
_ "io/ioutil"
|
||||
"os"
|
||||
"regexp"
|
||||
_ "time"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
const EXIT_CLEAN = 0
|
||||
@@ -23,7 +23,7 @@ var (
|
||||
assignRegex *regexp.Regexp
|
||||
fileDiffRegex *regexp.Regexp
|
||||
logger *zap.Logger
|
||||
opts *Options
|
||||
opts *Options
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -58,5 +58,3 @@ func failF(format string, args ...interface{}) {
|
||||
fmt.Fprintf(os.Stderr, format, args...)
|
||||
os.Exit(EXIT_FAILURE)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user