Skip to content

Rake task hyrax:workflow:load doesn't respect log config #7042

@dmolesUC

Description

@dmolesUC

The hyrax:worfklow:load Rake task spins up its own debug-level, STDOUT logger, so regardless of whatever else you've done to configure your logs, invoking it always produces noise like:

I, [2025-03-19T20:40:52.497339 #564]  INFO -- : Loading permission_template ID=44 with workflow config /home/comet/app/config/workflows/default_workflow.json
I, [2025-03-19T20:40:52.510370 #564]  INFO -- : Loading permission_template ID=44 with workflow config /home/comet/app/config/workflows/mediated_deposit_workflow.json
I, [2025-03-19T20:40:52.622240 #564]  INFO -- : Loading permission_template ID=44 with workflow config /home/comet/app/config/workflows/shoreline_mediated_workflow.json
I, [2025-03-19T20:40:52.714688 #564]  INFO -- : Loading permission_template ID=44 with workflow config /home/comet/app/config/workflows/simple_shoreline_workflow.json
I, [2025-03-19T20:40:52.724352 #564]  INFO -- : Loading permission_template ID=44 with workflow config /home/comet/app/config/workflows/surfliner_default.json

It'd be straightforward to use Hyrax.logger by default and only spin up a new one if for some reason that's nil.

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