More explicit 404 error in cassandra input (#2936)

This commit is contained in:
Artem Kovardin 2017-06-19 21:06:49 +03:00 committed by Daniel Nelson
parent 00b37a7c0d
commit 193e8fa5ad
2 changed files with 2 additions and 1 deletions

View File

@ -26,6 +26,7 @@
### Bugfixes ### Bugfixes
- [#2607](https://github.com/influxdata/telegraf/issues/2607): Errors in log should be more explicit
- [#2819](https://github.com/influxdata/telegraf/pull/2819): [enh] set db_version at 0 if query version fails - [#2819](https://github.com/influxdata/telegraf/pull/2819): [enh] set db_version at 0 if query version fails
- [#2749](https://github.com/influxdata/telegraf/pull/2749): Fixed sqlserver input to work with case sensitive server collation. - [#2749](https://github.com/influxdata/telegraf/pull/2749): Fixed sqlserver input to work with case sensitive server collation.
- [#2716](https://github.com/influxdata/telegraf/pull/2716): Systemd does not see all shutdowns as failures - [#2716](https://github.com/influxdata/telegraf/pull/2716): Systemd does not see all shutdowns as failures

View File

@ -296,7 +296,7 @@ func (c *Cassandra) Gather(acc telegraf.Accumulator) error {
continue continue
} }
if out["status"] != 200.0 { if out["status"] != 200.0 {
acc.AddError(fmt.Errorf("URL returned with status %v\n", out["status"])) acc.AddError(fmt.Errorf("URL returned with status %v - %s\n", out["status"], requestUrl))
continue continue
} }
m.addTagsFields(out) m.addTagsFields(out)