Skip to content

Feature Request: Add logging for life-cycle changes #75

Closed
@rytilahti

Description

@rytilahti

I find myself using the following pattern to make it easier to grep through logs to see if the script has been loaded:

@time_trigger
def run_on_startup_or_reload():
    log.info(f"Loading {__name__}")

It would be great if the "core" would do that on my behalf to avoid code duplication. I have a locally added info-level message under __init__.load_scripts, but I'm not sure if that's really the correct place to add such. Ideas/opinions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions