Skip to content

Resolve "Utiliser le logger python dans l'integration Datadog"

What does this MR do and why?

Use python builtin logging library

Screenshots or screen recordings

$ DD_APPLICATION_KEY="XXXXXX" DD_API_KEY="XXXXXX" PYTHONPATH=. venv/bin/python3 ProdManager/integrations/datadog/update_monitors.py

[2022-07-20 18:42:26,819] [Datadog] [INFO] [[F][B] Service status] Ignoring
[2022-07-20 18:42:26,820] [Datadog] [INFO] [[F][B] Service status] Ignoring
[2022-07-20 18:42:26,820] [Datadog] [INFO] [[F][B] Service status] Ignoring
[2022-07-20 18:42:26,820] [Datadog] [INFO] [[F][C] Service status] Ignoring
[2022-07-20 18:42:26,820] [Datadog] [INFO] [[F][C] Service status] Ignoring
[2022-07-20 18:42:26,820] [Datadog] [INFO] [[F][C] Service status] Ignoring
[2022-07-20 18:42:26,821] [Datadog] [INFO] [[F][D] Service status] Ignoring
[2022-07-20 18:42:26,821] [Datadog] [INFO] [[F][D] Service status] Ignoring
[2022-07-20 18:42:26,821] [Datadog] [INFO] [[F][D] Service status] Ignoring
[2022-07-20 18:42:26,821] [Datadog] [INFO] [[F][K] Service status] Ignoring

MR acceptance checklist

  • My code follows the style guidelines of this project
  • I ran pylint and other linters for modified files
  • I have performed a self-review of my own code and tested it
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • My code needed automated testing. I have added them (this is optional task)
  • I have added user readable comment in the CHANGELOG

Closes #74 (closed)

Edited by Guillaume MARTINEZ

Merge request reports