Skip to content

Commit ab3ba71

Browse files
committedApr 28, 2019
Improvements:
- Generated timestamps in logs - added a release.sh to integrate later in Makefile
1 parent 2ad0f08 commit ab3ba71

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
 

‎consul-alerts.go

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ var consulClient consul.Consul
5151

5252
func main() {
5353
log.SetLevel(log.InfoLevel)
54+
log.SetFormatter(&log.TextFormatter{FullTimestamp: true})
5455
args, _ := docopt.Parse(usage, nil, true, version, false)
5556

5657
switch {

‎release.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
CC=/usr/local/bin/musl-gcc CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o consul-alerts -a -ldflags '-extldflags "-static" -s -w' .

0 commit comments

Comments
 (0)