Skip to content

Commit

Permalink
v1.1.1 do not die if 'runSender' can't connect to Graphite server
Browse files Browse the repository at this point in the history
  • Loading branch information
nixargh committed Feb 25, 2021
1 parent 455c43e commit f9d4bd3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.1.1] - 2021-02-25
### Fixed
- Do not die if *runSender* can't connect to Graphite server.

## [1.1.0] - 2021-02-18
### Changed
- Do not rewrite **tenant** if it is set.
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func runSender(host string, port int, outputChan chan *Metric, TLS bool, ignoreC
// Create output connection
connection, err := createConnection(host, port, TLS, ignoreCert)
if err != nil {
slog.WithFields(log.Fields{"error": err}).Fatal("Can't create connection.")
slog.WithFields(log.Fields{"error": err}).Error("Can't create connection.")
atomic.AddInt64(&state.ConnectionError, 1)
time.Sleep(5 * time.Second)
continue
Expand Down

0 comments on commit f9d4bd3

Please sign in to comment.