diff --git a/.travis.yml b/.travis.yml index 3c094bc..6d1394a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,20 +1,13 @@ language: go go: - - 1.7.x - - 1.8.x + - 1.11.x - tip -before_install: - - go get github.com/modocache/gover - - go get github.com/mattn/goveralls - - go get golang.org/x/tools/cmd/cover +env: + - GO111MODULE=on script: - - go test -race ./... - - go test -coverprofile=color.coverprofile ./color - - go test -coverprofile=bytes.coverprofile ./bytes - - go test -coverprofile=log.coverprofile ./log - - go test -coverprofile=random.coverprofile ./random - - gover - - goveralls -coverprofile=gover.coverprofile -service=travis-ci + - go test -race -coverprofile=coverage.txt -covermode=atomic ./... +after_success: + - bash <(curl -s https://codecov.io/bash) matrix: allow_failures: - go: tip diff --git a/Gopkg.lock b/Gopkg.lock deleted file mode 100644 index ddb2a84..0000000 --- a/Gopkg.lock +++ /dev/null @@ -1,45 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - name = "github.com/davecgh/go-spew" - packages = ["spew"] - revision = "5215b55f46b2b919f50a1df0eaa5886afe4e3b3d" - -[[projects]] - name = "github.com/mattn/go-colorable" - packages = ["."] - revision = "ed8eb9e318d7a84ce5915b495b7d35e0cfe7b5a8" - version = "v0.0.6" - -[[projects]] - name = "github.com/mattn/go-isatty" - packages = ["."] - revision = "66b8e73f3f5cda9f96b69efd03dd3d7fc4a5cdb8" - -[[projects]] - name = "github.com/pmezard/go-difflib" - packages = ["difflib"] - revision = "d8ed2627bdf02c080bf22230dbb337003b7aba2d" - -[[projects]] - name = "github.com/stretchr/testify" - packages = ["assert"] - revision = "d77da356e56a7428ad25149ca77381849a6a5232" - -[[projects]] - name = "github.com/valyala/fasttemplate" - packages = ["."] - revision = "3b874956e03f1636d171bda64b130f9135f42cff" - -[[projects]] - name = "golang.org/x/sys" - packages = ["unix"] - revision = "8f0908ab3b2457e2e15403d3697c9ef5cb4b57a9" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - inputs-digest = "825b10cb2ba9aefd1ffb3cf26eeaa7315b1484d28cff5e479ebc37708579ffc6" - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml deleted file mode 100644 index b58c6de..0000000 --- a/Gopkg.toml +++ /dev/null @@ -1,7 +0,0 @@ -[[constraint]] - name = "github.com/mattn/go-colorable" - version = "0.0.6" - -[prune] - go-tests = true - unused-packages = true diff --git a/LICENSE b/LICENSE index d2ae3ed..fc718fa 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015 labstack +Copyright (c) 2018 labstack Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/log/log.go b/log/log.go index 0d77a87..132411d 100644 --- a/log/log.go +++ b/log/log.go @@ -219,7 +219,7 @@ func (l *Logger) Panic(i ...interface{}) { func (l *Logger) Panicf(format string, args ...interface{}) { l.log(panicLevel, format, args...) - panic(fmt.Sprintf(format, args)) + panic(fmt.Sprintf(format, args...)) } func (l *Logger) Panicj(j JSON) {