Skip to content

Further performance improvements to logging #1776

Description

@mbprend

Motivation or Problem

In reference to pull request #1765.
By updating logging.debug from pre-formatting to providing arguments directly, there was a demonstrable improvement in computing time after changing statements like
logging.debug('Finished setting conditions for network {0}.'.format(self.label)) to
logging.debug('Finished setting conditions for network %s.', self.label) and
logging.warning(' Actual Keq({0:g} K) = {1:g}'.format(temperature, Keq_actual)) to
logging.log(level, ' Actual Keq(%g K) = %g', temperature, Keq_actual).

Desired Solution

To complete change of previous logging format to the sprintf style.

Metadata

Metadata

Assignees

Labels

abandonedabandoned issue/PR as determined by actions botstalestale issue/PR as determined by actions bot

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions