Output timestamp to console for better logs

This commit is contained in:
Michael Vines 2019-10-01 09:17:29 -07:00
parent 2f92b92a8a
commit f09183765c
No known key found for this signature in database
GPG Key ID: 33F4FDEC4E0E88BD
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ if [[ -z $point ]]; then
exit 1
fi
echo "Influx data point: $point"
echo "[$(date --iso-8601=seconds)] Influx data point: $point"
if [[ -z $INFLUX_DATABASE || -z $INFLUX_USERNAME || -z $INFLUX_PASSWORD ]]; then
echo Influx user credentials not found
exit 0