schubergphilis / awsenergylabelercli

MIT License
2 stars 3 forks source link

Add option/hook to disable spinner #38

Closed jorrite closed 1 year ago

jorrite commented 1 year ago

Whenever you run the tool with loglevel as anything but Debug, tool will present a spinner, it is coming from here:

https://github.com/schubergphilis/awsenergylabelercli/blob/924d20121b5c3bca7dec8314acae7d8a60b1b397/awsenergylabelercli/awsenergylabelercli.py#L373-L397

However, running the CLI via a container (schubergphilis/awsenergylabeler-docker), in fargate, on a schedule, this spinner isn't providing you much value. What is worse, when the container logs are ingested into Cloud Watch, the spinner will actually print a few hundred (depending on your sec hub environment) lines with the "Please wait while ..", all in a single CloudWatch entry.

I'd like to be able to turn off the spinner, without needing to turn on the (very verbose) Debug log level.