From f9d4bd3bd6bf59027f067ecf683f4cdbc8c03010 Mon Sep 17 00:00:00 2001 From: nixargh Date: Thu, 25 Feb 2021 19:35:19 +0300 Subject: [PATCH] v1.1.1 do not die if 'runSender' can't connect to Graphite server --- CHANGELOG.md | 4 ++++ main.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d8c9ef6..adc4f4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/main.go b/main.go index dd81098..32e02e8 100644 --- a/main.go +++ b/main.go @@ -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