Skip to content

fwl-io configures its logger with an incorrect name #34

Description

@nichollsh

Problem

All FWL modules need to setup their loggers with names that have the prefix fwl- in order for them to be captured together into a single logger stream. Without this, when calling one module from another, logs will be lost.

This is currently active on PROTEUS and fwl-io main branches. When running PROTEUS simulations, the terminal stdout shows things like:

Downloading data from 'doi:10.5281/zenodo.15727899/halfh2o2h500K1mbar.txt' to file '/home/harrison/Projects/FWL_DATA/.fwl-io-staging/tmppjj9gxsl/halfh2o2h500K1mbar.txt'.

But these do not appear in the PROTEUS log file and do not have the same log-formatting, because the fwl-io module isn't configuring its logger properly.

Solution

The fwl-io module should configure its logger as: log = logging.getLogger("fwl."+__name__) rather than log = logging.getLogger(__name__).

People

@egpbos @timlichtenberg

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingPriority 2: highPriority level 2: high time criticality or importanceSoftwareRelating to software and implementation

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions