Open elinol opened 6 hours ago
When a device is reporting health with an empty metrics map, it gets treated as an error and triggers Logger.warning("Failed to save metrics").
Logger.warning("Failed to save metrics")
See matching on result of Repo.insert_all in Metrics.save_metrics:
Repo.insert_all
Metrics.save_metrics
case results do {0, _} -> :error {count, _} -> {:ok, count} end
When a device is reporting health with an empty metrics map, it gets treated as an error and triggers
Logger.warning("Failed to save metrics")
.See matching on result of
Repo.insert_all
inMetrics.save_metrics
: