aerosense-ai / data-gateway

Data influx for Aerosense.
https://www.aerosense.ai/
Other
3 stars 1 forks source link

Main service does not log to the Balena Dashboard Logs Window. #122

Open time-trader opened 1 year ago

time-trader commented 1 year ago

Bug report

What is the current behavior?

When running gateway, the logger output is not picked up by the logs window on Balena dashboard. The only logs that appear are the supervisor logs about the start / killing of the main service.

What is the expected behavior?

Balena Dashboard Logs window, in theory, should pick up the stdout from the services that are running (As shown here). But filtering logs by "main" service doesn't show any gateway logger output: image

As a result, the only way to check the state of the gateway is to download the log via ssh-scp, which is not optimal.

time-trader commented 1 year ago

This is most likely related to the fact that we don't have gateway daemonized (Related #119), and starting it using interactive session instead of main service in the docker image.

Possible courses of action: