Skip to content

Fix logging placeholders missing their arguments - #723

Open
Julia-b-work wants to merge 1 commit into
lanl:mainfrom
Julia-b-work:fix/logging-placeholders
Open

Julia-b-work wants to merge 1 commit into
lanl:mainfrom
Julia-b-work:fix/logging-placeholders

Conversation

@Julia-b-work

Copy link
Copy Markdown

Two logger.debug calls carried a %s placeholder but passed no argument, so they logged the literal '%s' text instead of the value.

  • base.py: 'Job %s complete' now passes res.name
  • dream.py: 'Variable %s is outside of bounds' now passes k.name

Fixes #715

Two logger.debug calls carried a %s placeholder but passed no
argument, so they logged the literal '%s' text instead of the value.

- base.py: 'Job %s complete' now passes res.name
- dream.py: 'Variable %s is outside of bounds' now passes k.name

Fixes lanl#715

Signed-off-by: julia-b-work <juliabarrioswork@gmail.com>
@wshlavacek

wshlavacek commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Thanks, this is correct and CI is green.

#717 opened about 50 minutes earlier with an identical diff, so it goes first. No reflection on your work.

The matching diff is expected. Issue #715 quoted both replacement lines exactly, so anyone working from it writes this same patch.

I'm leaving this open. #717 has an open question its author needs to settle first. If that doesn't happen, we merge yours.

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.

Two logging calls have a %s with no argument, so they log the literal placeholder (DREAM drops the out-of-bounds parameter name)

2 participants