structured logs

This commit is contained in:
zricethezav committed 2018-02-28 22:02:03 -06:00
1 parent 7919e15a65
commit 0d75136c1c
4 files changed
+87 -67

No files matched your search

+2 -4
View File
@@ -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)
}