Skip to content

Commit

Permalink
Make it clear that health check uses API call
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorbonas committed Mar 27, 2024
1 parent 620927a commit 393e334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/python/influx-migration/influx_migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def health_check(host, token, skip_verify):
client = InfluxDBClient(url=host,
token=token, timeout=MILLISECOND_TIMEOUT, verify_ssl=not skip_verify)
if not client.ping():
raise InfluxDBError(message=f"{host} ping failed")
raise InfluxDBError(message=f"InfluxDB API call to {host}/ping failed")
except InfluxDBError as error:
logging.error(str(error))
return False
Expand Down

0 comments on commit 393e334

Please sign in to comment.