Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ehuelsmann
Copy link
Member

Description

Logging during import breaks the generally accepted convention
of using modules and then doing all the work, like initialization.

Logging during import() is simply 'too early' and causes truckloads of "Log4perl not initialized" warnings in LedgerSMB.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the style guidelines of this project, please see the contribution guidelines.
  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes

You might think, that this is one crazy checklist, but it is just as much written for the maintainer of the involved software :-)

Logging during import breaks the generally accepted convention
of using modules and *then* doing all the work, like initialization.

Logging during import() is simply 'too early'.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 92.211% when pulling 031428d on more-1.x into f317382 on master.

@ehuelsmann ehuelsmann requested a review from jonasbn October 4, 2021 22:04
Copy link
Collaborator

@jonasbn jonasbn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, no need to log from this perspective/context, it makes sense

@jonasbn jonasbn merged commit 8479ce9 into master Oct 12, 2021
@delete-merged-branch delete-merged-branch bot deleted the more-1.x branch October 12, 2021 04:43
@jonasbn jonasbn added this to the 2.0 milestone Oct 12, 2021
@ehuelsmann ehuelsmann restored the more-1.x branch October 12, 2021 05:11
@ehuelsmann ehuelsmann deleted the more-1.x branch October 12, 2021 05:11
ehuelsmann added a commit that referenced this pull request Oct 12, 2021
Logging during import breaks the generally accepted convention
of using modules and *then* doing all the work, like initialization.

Logging during import() is simply 'too early'.
@jonasbn jonasbn modified the milestones: 2.0, 1.57 Oct 17, 2021
@jonasbn
Copy link
Collaborator

jonasbn commented Oct 17, 2021

Moved to milestone 1.57 from 2.0

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants