Skip to content
Snippets Groups Projects

celery_backend/config: Fix missing comma in setup_log_handler

Merged Antoine Lambert requested to merge anlambert/swh-scheduler:setup-log-handler-fix into master
  1. Jan 26, 2023
    • Antoine Lambert's avatar
      celery_backend/config: Fix missing comma in setup_log_handler · a65c4ed4
      Antoine Lambert authored
      Because of that missing comma, an exception was raised (tuple object is
      not callable) but it was caught and displayed by the _print_errors decorator
      so tests could not detect it.
      
      As a consequence, the logging configuration of celery workers was broken.
      
      Add a test to check if an exception was raised by the setup_log_handler
      function to avoid bad surprises when deploying to production or in
      docker.
      a65c4ed4
Loading