Skip to content

fix: correct typo in ModelUsageCounter log message#13

Open
fragres wants to merge 1 commit intoDataArcTech:mainfrom
fragres:fix/typo-usage-counter-log
Open

fix: correct typo in ModelUsageCounter log message#13
fragres wants to merge 1 commit intoDataArcTech:mainfrom
fragres:fix/typo-usage-counter-log

Conversation

@fragres
Copy link

@fragres fragres commented Mar 1, 2026

Problem

ModelUsageCounter.estimate_usage() logs a progress line after every batch. The field name in that log message contained a typo:

remain_time_anticipatioin=...   # ← extra 'i' before 'on'

This is a cosmetic issue, but it:

  • produces misleading output when operators tail the logs to monitor a long generation run
  • breaks any log-parsing script or monitoring rule that matches on the field name
  • causes confusion when comparing the log key against the variable name remain_time_anticipation (which is spelled correctly in the code)

Fix

Rename the log key to match the variable:

remain_time_anticipation=...   # ✓

One-character change, zero functional impact.

Files changed

  • sdgsystem/models/usage_counter.py

The log line in estimate_usage() contained a misspelling:
  remain_time_anticipatioin  ->  remain_time_anticipation

This is a cosmetic fix with no functional impact, but the typo causes
confusion when grepping logs or writing monitoring rules that match
on the field name.
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.

1 participant