• 
      

    Add new startup logging to replace Celery's.

    Review Request #12098 — Created March 2, 2022 and submitted

    Information

    ReviewBot
    release-3.0.x

    Reviewers

    When starting a new Review Bot worker process, Review Bot will now log
    some information on the configuration. This lists the available tools,
    the ones missing dependencies, the ones that require repository
    configuration, and the available repositories. URLs for the relevant
    sections in the manual are also provided.

    This replaces the default Celery startup information, which, while
    somewhat interesting, isn't generally useful for Review Bot. We can only
    outright replace it with Celery 4+ on Python 3. On Python 2.7, the old
    Celery banner will still display.

    The logging is now done through a new root logger, which just uses
    "Review Bot" as the name, rather than a module path. The configuration
    code uses this logger as well, since the logging there ties more into
    general startup.

    Ran Review Bot with Python 2.7 and 3.x. Verified the details of the
    startup information. Verified that the Celery banner didn't dsiplay
    on 3.x.

    Unit tests pass.

    Summary ID
    Add new startup logging to replace Celery's.
    When starting a new Review Bot worker process, Review Bot will now log some information on the configuration. This lists the available tools, the ones missing dependencies, the ones that require repository configuration, and the available repositories. URLs for the relevant sections in the manual are also provided. This replaces the default Celery startup information, which, while somewhat interesting, isn't generally useful for Review Bot. We can only outright replace it with Celery 4+ on Python 3. On Python 2.7, the old Celery banner will still display. The logging is now done through a new root logger, which just uses "Review Bot" as the name, rather than a module path. The configuration code uses this logger as well, since the logging there ties more into general startup.
    f95d147267f5655eea3048a25b7e4db3c6fdbf23
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-3.0.x (c2b3f26)