cresta / atlantis-drift-detection

Detect terraform drift in atlantis
Apache License 2.0
68 stars 8 forks source link

Debug Log level #26

Open jamengual opened 1 year ago

jamengual commented 1 year ago

Could it be possible to add Debug log level to see the transaction request sent to the API and the response back?

the github action seems to be working with version 0.0.9 and is parsing the atlantis.yaml correctly and I know I have my atlantis server down but the action seem to be always green no matter if atlantis is up or down and having Debug level outputs could be useful to troubleshoot.

Thanks.

cep21 commented 1 year ago

I see lots of output when my action is running. It runs on debug zap level by default

cep21 commented 1 year ago

The full request/response body may be a lot, but it makes sense to log some basic information per request. I'm a bit busy to add atm but i'll accept PRs for https://github.com/cresta/atlantis-drift-detection/blob/main/internal/atlantis/client.go