Skip to content
Snippets Groups Projects
  1. Oct 03, 2022
  2. Sep 12, 2022
  3. Aug 23, 2022
    • vlorentz's avatar
      Fix mypy error · 843a010c
      vlorentz authored
      Without the return, 'psycopg2.connect(db_or_conninfo)' is actually reachable
      when calling next() twice on the generator
      843a010c
  4. Aug 19, 2022
  5. Aug 09, 2022
  6. Aug 05, 2022
  7. Aug 04, 2022
  8. Jul 05, 2022
  9. Jul 04, 2022
  10. Jun 16, 2022
  11. Jun 09, 2022
  12. Jun 08, 2022
  13. Jun 02, 2022
  14. Jun 01, 2022
  15. May 30, 2022
  16. May 20, 2022
  17. May 17, 2022
  18. May 16, 2022
  19. May 11, 2022
  20. Apr 26, 2022
  21. Apr 25, 2022
  22. Apr 21, 2022
  23. Apr 15, 2022
    • Nicolas Dandrimont's avatar
      sentry: always override init settings with the environment variables · c1b2e937
      Nicolas Dandrimont authored
      Instead of only overriding the initial settings when they're left unset,
      always override the defaults when the environment variables are set.
      
      This makes the behavior more consistent with the way we usually handle
      environment variables. It also allows setting the environment variable
      `SWH_SENTRY_DISABLE_LOGGING_EVENTS=false`, to enable events based on the
      logging framework in gunicorn backends (where the default has been
      flipped to true).
      c1b2e937
    • Nicolas Dandrimont's avatar
      cli: Ensure tests don't mess with the global logging setup · 151a2f95
      Nicolas Dandrimont authored
      Notably, using logging.config.dictConfig disables all loggers before
      setting its own config. There's no simple way of undoing these changes
      to the logging config.
      
      Even if we had a way to reset a basic logging config, pytest reuses its
      log handler instances across tests, so it's not even that simple to be
      able to reset the logging config from scratch and still have pytest able
      to capture logs.
      
      Instead of any of that, just add a fixture to reset the root logger
      level, and to mock logging.config.dictConfig so that it doesn't actually
      get called.
      151a2f95
  24. Apr 14, 2022
Loading