Skip to content

Commit fbd41a4

Browse files
committed
refactoring
- implement logrus for logging - renaming to pagerduty2es - general cleanup Signed-off-by: Markus Blaschke <[email protected]>
1 parent acd5c16 commit fbd41a4

File tree

11 files changed

+163
-134
lines changed

11 files changed

+163
-134
lines changed

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
/vendor/
2-
/pagerduty-elasticsearch-exporter
2+
/pagerduty2es
33
*.exe

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
/vendor/
2-
/pagerduty2elasticsearch-exporter
2+
/pagerduty2es
33
*.exe

Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
FROM golang:1.15 as build
22

3-
WORKDIR /go/src/github.com/webdevops/pagerduty2elasticsearch-exporter
3+
WORKDIR /go/src/github.com/webdevops/pagerduty2es
44

55
# Get deps (cached)
6-
COPY ./go.mod /go/src/github.com/webdevops/pagerduty2elasticsearch-exporter
7-
COPY ./go.sum /go/src/github.com/webdevops/pagerduty2elasticsearch-exporter
8-
COPY ./Makefile /go/src/github.com/webdevops/alertmanager2es
6+
COPY ./go.mod /go/src/github.com/webdevops/pagerduty2es
7+
COPY ./go.sum /go/src/github.com/webdevops/pagerduty2es
8+
COPY ./Makefile /go/src/github.com/webdevops/pagerduty2es
99
RUN make dependencies
1010

1111
# Compile
12-
COPY ./ /go/src/github.com/webdevops/pagerduty2elasticsearch-exporter
12+
COPY ./ /go/src/github.com/webdevops/pagerduty2es
1313
RUN make lint
1414
RUN make build
15-
RUN ./pagerduty2elasticsearch-exporter --help
15+
RUN ./pagerduty2es --help
1616

1717
#############################################
1818
# FINAL IMAGE
1919
#############################################
2020
FROM gcr.io/distroless/static
21-
COPY --from=build /go/src/github.com/webdevops/pagerduty2elasticsearch-exporter/pagerduty2elasticsearch-exporter /
21+
COPY --from=build /go/src/github.com/webdevops/pagerduty2es/pagerduty2es /
2222
USER 1000
23-
ENTRYPOINT ["/pagerduty2elasticsearch-exporter"]
23+
ENTRYPOINT ["/pagerduty2es"]

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.PHONY: all build clean image check vendor dependencies
22

3-
NAME := pagerduty2elasticsearch-exporter
3+
NAME := pagerduty2es
44
GIT_TAG := $(shell git describe --dirty --tags --always)
55
GIT_COMMIT := $(shell git rev-parse --short HEAD)
66
LDFLAGS := -X "main.gitTag=$(GIT_TAG)" -X "main.gitCommit=$(GIT_COMMIT)" -extldflags "-static"

README.md

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
PagerDuty2Elasticsearch exporter
2-
================================
1+
PagerDuty2es (elasticsearch) exporter
2+
=====================================
33

4-
[![license](https://img.shields.io/github/license/webdevops/pagerduty2elasticsearch-exporter.svg)](https://github.com/webdevops/pagerduty2elasticsearch-exporter/blob/master/LICENSE)
5-
[![Docker](https://img.shields.io/badge/docker-webdevops%2Fpagerduty--exporter-blue.svg?longCache=true&style=flat&logo=docker)](https://hub.docker.com/r/webdevops/pagerduty2elasticsearch-exporter/)
6-
[![Docker Build Status](https://img.shields.io/docker/build/webdevops/pagerduty2elasticsearch-exporter.svg)](https://hub.docker.com/r/webdevops/pagerduty2elasticsearch-exporter/)
4+
[![license](https://img.shields.io/github/license/webdevops/pagerduty2es.svg)](https://github.com/webdevops/pagerduty2es/blob/master/LICENSE)
5+
[![Docker](https://img.shields.io/docker/cloud/automated/webdevops/pagerduty2es)](https://hub.docker.com/r/webdevops/pagerduty2es/)
6+
[![Docker Build Status](https://img.shields.io/docker/cloud/build/webdevops/pagerduty2es)](https://hub.docker.com/r/webdevops/pagerduty2es/)
77

88
Exporter for incidents and logentries from PagerDuty to ElasticSearch
99

@@ -12,23 +12,30 @@ Configuration
1212

1313
```
1414
Usage:
15-
pagerduty2elasticsearch-exporter [OPTIONS]
15+
pagerduty2es [OPTIONS]
1616
1717
Application Options:
18+
--debug debug mode [$DEBUG]
1819
-v, --verbose verbose mode [$VERBOSE]
19-
--bind= Server address (default: :8080) [$SERVER_BIND]
20-
--scrape-time= Scrape time (time.duration) (default: 5m) [$SCRAPE_TIME]
20+
--log.json Switch log output to json format [$LOG_JSON]
2121
--pagerduty.authtoken= PagerDuty auth token [$PAGERDUTY_AUTH_TOKEN]
2222
--pagerduty.date-range= PagerDuty date range (default: 168h) [$PAGERDUTY_DATE_RANGE]
23-
--pagerduty.max-connections= Maximum numbers of TCP connections to PagerDuty API (concurrency) (default: 4) [$PAGERDUTY_MAX_CONNECTIONS]
23+
--pagerduty.max-connections= Maximum numbers of TCP connections to PagerDuty API (concurrency) (default: 4)
24+
[$PAGERDUTY_MAX_CONNECTIONS]
2425
--elasticsearch.address= ElasticSearch urls [$ELASTICSEARCH_ADDRESS]
2526
--elasticsearch.username= ElasticSearch username for HTTP Basic Authentication [$ELASTICSEARCH_USERNAME]
26-
--elasticsearch.password= ElasticSearch password for HTTP Basic Authenticatio [$ELASTICSEARCH_PASSWORD]
27-
--elasticsearch.apikey= ElasticSearch base64-encoded token for authorization; if set, overrides username and password [$ELASTICSEARCH_APIKEY]
28-
--elasticsearch.index= ElasticSearch index name (placeholders: %y for year, %m for month and %d for day) (default: pagerduty) [$ELASTICSEARCH_INDEX]
29-
--elasticsearch.batch-count= Number of documents which should be indexed in one request (default: 50) [$ELASTICSEARCH_BATCH_COUNT]
27+
--elasticsearch.password= ElasticSearch password for HTTP Basic Authentication [$ELASTICSEARCH_PASSWORD]
28+
--elasticsearch.apikey= ElasticSearch base64-encoded token for authorization; if set, overrides username and
29+
password [$ELASTICSEARCH_APIKEY]
30+
--elasticsearch.index= ElasticSearch index name (placeholders: %y for year, %m for month and %d for day)
31+
(default: pagerduty) [$ELASTICSEARCH_INDEX]
32+
--elasticsearch.batch-count= Number of documents which should be indexed in one request (default: 50)
33+
[$ELASTICSEARCH_BATCH_COUNT]
3034
--elasticsearch.retry-count= ElasticSearch request retry count (default: 5) [$ELASTICSEARCH_RETRY_COUNT]
31-
--elasticsearch.retry-delay= ElasticSearch request delay for reach retry (default: 5s) [$ELASTICSEARCH_RETRY_DELAY]
35+
--elasticsearch.retry-delay= ElasticSearch request delay for reach retry (default: 5s)
36+
[$ELASTICSEARCH_RETRY_DELAY]
37+
--bind= Server address (default: :8080) [$SERVER_BIND]
38+
--scrape-time= Scrape time (time.duration) (default: 5m) [$SCRAPE_TIME]
3239
3340
Help Options:
3441
-h, --help Show this help message

config/opts.go

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
package config
2+
3+
import (
4+
"encoding/json"
5+
log "github.com/sirupsen/logrus"
6+
"time"
7+
)
8+
9+
type (
10+
Opts struct {
11+
// logger
12+
Logger struct {
13+
Debug bool ` long:"debug" env:"DEBUG" description:"debug mode"`
14+
Verbose bool `short:"v" long:"verbose" env:"VERBOSE" description:"verbose mode"`
15+
LogJson bool ` long:"log.json" env:"LOG_JSON" description:"Switch log output to json format"`
16+
}
17+
18+
// PagerDuty settings
19+
PagerDuty struct {
20+
AuthToken string `long:"pagerduty.authtoken" env:"PAGERDUTY_AUTH_TOKEN" description:"PagerDuty auth token" required:"true" json:"-"`
21+
Since time.Duration `long:"pagerduty.date-range" env:"PAGERDUTY_DATE_RANGE" description:"PagerDuty date range" default:"168h"`
22+
MaxConnections int `long:"pagerduty.max-connections" env:"PAGERDUTY_MAX_CONNECTIONS" description:"Maximum numbers of TCP connections to PagerDuty API (concurrency)" default:"4"`
23+
}
24+
25+
// ElasticSearch settings
26+
Elasticsearch struct {
27+
Addresses []string `long:"elasticsearch.address" env:"ELASTICSEARCH_ADDRESS" delim:" " description:"ElasticSearch urls" required:"true"`
28+
Username string `long:"elasticsearch.username" env:"ELASTICSEARCH_USERNAME" description:"ElasticSearch username for HTTP Basic Authentication"`
29+
Password string `long:"elasticsearch.password" env:"ELASTICSEARCH_PASSWORD" description:"ElasticSearch password for HTTP Basic Authentication" json:"-"`
30+
ApiKey string `long:"elasticsearch.apikey" env:"ELASTICSEARCH_APIKEY" description:"ElasticSearch base64-encoded token for authorization; if set, overrides username and password" json:"-"`
31+
Index string `long:"elasticsearch.index" env:"ELASTICSEARCH_INDEX" description:"ElasticSearch index name (placeholders: %y for year, %m for month and %d for day)" default:"pagerduty"`
32+
BatchCount int `long:"elasticsearch.batch-count" env:"ELASTICSEARCH_BATCH_COUNT" description:"Number of documents which should be indexed in one request" default:"50"`
33+
RetryCount int `long:"elasticsearch.retry-count" env:"ELASTICSEARCH_RETRY_COUNT" description:"ElasticSearch request retry count" default:"5"`
34+
RetryDelay time.Duration `long:"elasticsearch.retry-delay" env:"ELASTICSEARCH_RETRY_DELAY" description:"ElasticSearch request delay for reach retry" default:"5s"`
35+
}
36+
37+
// general options
38+
ServerBind string `long:"bind" env:"SERVER_BIND" description:"Server address" default:":8080"`
39+
ScrapeTime time.Duration `long:"scrape-time" env:"SCRAPE_TIME" description:"Scrape time (time.duration)" default:"5m"`
40+
}
41+
)
42+
43+
func (o *Opts) GetJson() []byte {
44+
jsonBytes, err := json.Marshal(o)
45+
if err != nil {
46+
log.Panic(err)
47+
}
48+
return jsonBytes
49+
}

exporter.go

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
elasticsearch "github.com/elastic/go-elasticsearch/v7"
99
esapi "github.com/elastic/go-elasticsearch/v7/esapi"
1010
"github.com/prometheus/client_golang/prometheus"
11+
log "github.com/sirupsen/logrus"
1112
"net/http"
1213
"strings"
1314
"sync"
@@ -107,7 +108,7 @@ func (e *PagerdutyElasticsearchExporter) SetScrapeTime(value time.Duration) {
107108
}
108109

109110
func (e *PagerdutyElasticsearchExporter) ConnectPagerduty(token string, httpClient *http.Client) {
110-
e.pagerdutyClient = pagerduty.NewClient(opts.PagerDutyAuthToken)
111+
e.pagerdutyClient = pagerduty.NewClient(token)
111112
e.pagerdutyClient.HTTPClient = httpClient
112113
}
113114

@@ -130,7 +131,7 @@ func (e *PagerdutyElasticsearchExporter) ConnectElasticsearch(cfg elasticsearch.
130131
if tries >= 5 {
131132
panic(err)
132133
} else {
133-
daemonLogger.Info("Failed to connect to ES, retry...")
134+
log.Info("failed to connect to ES, retry...")
134135
time.Sleep(5 * time.Second)
135136
continue
136137
}
@@ -165,13 +166,13 @@ func (e *PagerdutyElasticsearchExporter) RunDaemon() {
165166
}
166167

167168
func (e *PagerdutyElasticsearchExporter) sleepUntilNextCollection() {
168-
daemonLogger.Verbosef("sleeping %v", e.scrapeTime)
169+
log.Debugf("sleeping %v", e.scrapeTime)
169170
time.Sleep(*e.scrapeTime)
170171
}
171172

172173
func (e *PagerdutyElasticsearchExporter) runScrape() {
173174
var wgProcess sync.WaitGroup
174-
daemonLogger.Verbosef("Starting scraping")
175+
log.Info("starting scrape")
175176

176177
since := time.Now().Add(-*e.pagerdutyDateRange).Format(time.RFC3339)
177178
listOpts := pagerduty.ListIncidentsOptions{
@@ -216,7 +217,7 @@ func (e *PagerdutyElasticsearchExporter) runScrape() {
216217
incident.Id = incident.ID
217218
}
218219

219-
daemonLogger.Verbosef(" - Incident %v", incident.Id)
220+
log.Debugf(" - incident %v", incident.Id)
220221
e.indexIncident(incident, esIndexRequestChannel)
221222

222223
listLogOpts := pagerduty.ListIncidentLogEntriesOptions{}
@@ -226,7 +227,7 @@ func (e *PagerdutyElasticsearchExporter) runScrape() {
226227
}
227228

228229
for _, logEntry := range incidentLogResponse.LogEntries {
229-
daemonLogger.Verbosef(" - LogEntry %v", logEntry.ID)
230+
log.Debugf(" - logEntry %v", logEntry.ID)
230231
e.indexIncidentLogEntry(incident, logEntry, esIndexRequestChannel)
231232
}
232233
}
@@ -242,7 +243,7 @@ func (e *PagerdutyElasticsearchExporter) runScrape() {
242243

243244
duration := time.Now().Sub(startTime)
244245
e.prometheus.duration.WithLabelValues().Set(duration.Seconds())
245-
daemonLogger.Verbosef("processing took %v", duration.String())
246+
log.WithField("duration", duration.String()).Info("finished scraping")
246247
}
247248

248249
func (e *PagerdutyElasticsearchExporter) indexIncident(incident pagerduty.Incident, callback chan<- *esapi.IndexRequest) {
@@ -357,11 +358,11 @@ func (e *PagerdutyElasticsearchExporter) doESIndexRequestBulk(bulkRequests []*es
357358
}
358359

359360
if resp != nil {
360-
daemonLogger.Errorf("Unexpected HTTP %v response: %v", resp.StatusCode, resp.String())
361+
log.Errorf("Unexpected HTTP %v response: %v", resp.StatusCode, resp.String())
361362
}
362363

363364
// got an error
364-
daemonLogger.Errorf("Retrying ES index error: %v", err)
365+
log.Errorf("Retrying ES index error: %v", err)
365366
e.prometheus.esRequestRetries.WithLabelValues().Inc()
366367

367368
// wait until retry

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
module github.com/webdevops/pagerduty2elasticsearch-exporter
1+
module github.com/webdevops/pagerduty2es
22

33
go 1.15
44

55
require (
66
github.com/PagerDuty/go-pagerduty v1.2.0
77
github.com/elastic/go-elasticsearch/v7 v7.8.0
8-
github.com/google/logger v1.1.0
98
github.com/jessevdk/go-flags v1.4.0
109
github.com/prometheus/client_golang v1.7.0
10+
github.com/sirupsen/logrus v1.6.0
1111
golang.org/x/sys v0.0.0-20200620081246-981b61492c35 // indirect
1212
google.golang.org/protobuf v1.24.0 // indirect
1313
)

go.sum

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ github.com/cespare/xxhash/v2 v2.1.1 h1:6MnRN8NT7+YBpUIWxHtefFZOKTAPgGjpQSxqLNn0+
1717
github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
1818
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
1919
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
20+
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
2021
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
2122
github.com/elastic/go-elasticsearch/v7 v7.8.0 h1:M9D55OK13IEgg51Jb57mZgseag1AsncwAUn4C6j1vlc=
2223
github.com/elastic/go-elasticsearch/v7 v7.8.0/go.mod h1:OJ4wdbtDNk5g503kvlHLyErCgQwwzmDtaFC4XyOxXA4=
@@ -51,19 +52,22 @@ github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
5152
github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk=
5253
github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
5354
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
54-
github.com/google/logger v1.1.0 h1:saB74Etb4EAJNH3z74CVbCKk75hld/8T0CsXKetWCwM=
55-
github.com/google/logger v1.1.0/go.mod h1:w7O8nrRr0xufejBlQMI83MXqRusvREoJdaAxV+CoAB4=
5655
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
5756
github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk=
5857
github.com/jessevdk/go-flags v1.4.0 h1:4IU2WS7AumrZ/40jfhf4QVDMsQwqA7VEHozFRrGARJA=
5958
github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
6059
github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
6160
github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
6261
github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
62+
github.com/konsorten/go-windows-terminal-sequences v1.0.1 h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk=
6363
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
64+
github.com/konsorten/go-windows-terminal-sequences v1.0.3 h1:CE8S1cTafDpPvMhIxNJKvHsGVBgn1xWYf1NbHQhywc8=
65+
github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
6466
github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
67+
github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
6568
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
6669
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
70+
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
6771
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
6872
github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
6973
github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
@@ -78,6 +82,7 @@ github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3Rllmb
7882
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
7983
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
8084
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
85+
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
8186
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
8287
github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI=
8388
github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
@@ -97,11 +102,15 @@ github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsT
97102
github.com/prometheus/procfs v0.1.3 h1:F0+tqvhOksq22sc6iCHF5WGlWjdwj92p0udFh1VFBS8=
98103
github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU=
99104
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
105+
github.com/sirupsen/logrus v1.4.2 h1:SPIRibHv4MatM3XXNO2BJeFLZwZ2LvZgfQ5+UNI2im4=
100106
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
107+
github.com/sirupsen/logrus v1.6.0 h1:UBcNElsrwanuuMsnGSlYmtmgbb23qDR5dG+6X6Oo89I=
108+
github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88=
101109
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
102110
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
103111
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
104112
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
113+
github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
105114
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
106115
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
107116
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
@@ -159,10 +168,12 @@ google.golang.org/protobuf v1.24.0 h1:UhZDfRO8JRQru4/+LlLE0BRKGF8L+PICnvYZmx/fEG
159168
google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4=
160169
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
161170
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
171+
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=
162172
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
163173
gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
164174
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
165175
gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
176+
gopkg.in/yaml.v2 v2.2.5 h1:ymVxjfMaHvXD8RqPRmzHHsB3VvucivSkIAvJFDI5O3c=
166177
gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
167178
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
168179
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=

logger.go

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)