jkomoros / flux-bot

Discord bot for GALE-x
3 stars 1 forks source link

Hook up logging from production bot #25

Open jkomoros opened 3 years ago

jkomoros commented 3 years ago

The production bot just runs in a tmux session on a VM somewhere, printing log messages to stdout no one is watching. That also makes it hard to tell if it's working or not. (Although the 'Available' indicator in the Discord UI for the bot is an easy check that the binary is at least still running with a valid Discord session).

When running in production it should instead log to somewhere more visible, ideally visible in Google Cloud Engine logs of some form

jkomoros commented 3 years ago

Maybe simpler to not do the tmux hack but something like https://cloud.google.com/go/getting-started/getting-started-on-compute-engine , which also will handle logging