Skip to content

Commit

Permalink
fix: デバッグしやすくするため,ログに記録する流量の桁数を増やした
Browse files Browse the repository at this point in the history
  • Loading branch information
kimata committed Dec 22, 2023
1 parent 638d02d commit 642edb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask/lib/rasp_water_valve.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def term():


def send_data(config, flow):
logging.info("Send fluentd: flow = {flow:.1f}".format(flow=flow))
logging.info("Send fluentd: flow = {flow:.2f}".format(flow=flow))
sender = fluent.sender.FluentSender(config["fluent"]["data"]["tag"], host=config["fluent"]["host"])
sender.emit("rasp", {"hostname": config["fluent"]["data"]["hostname"], "flow": flow})
sender.close()
Expand Down

0 comments on commit 642edb1

Please sign in to comment.