Output timestamp to console for better logs
This commit is contained in:
parent
2f92b92a8a
commit
f09183765c
@ -9,7 +9,7 @@ if [[ -z $point ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
if [[ -z $INFLUX_DATABASE || -z $INFLUX_USERNAME || -z $INFLUX_PASSWORD ]]; then
|
||||||
echo Influx user credentials not found
|
echo Influx user credentials not found
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user