Skip to content

Conversation

@roy-nexthop
Copy link

@roy-nexthop roy-nexthop commented Jun 30, 2025

The process-reboot-cause and determine-reboot-cause services are filtering out INFO level logs. This is unintentional according to the comment "Configure logger to log all messages INFO level and higher".

This PR calls set_min_log_priority with logging.INFO (20) instead of sonic_logger.DEFAULT_LOG_LEVEL (21) as to not filter out the INFO logs.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jun 30, 2025

CLA Signed


The committers listed above are authorized under a signed CLA.

@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@lotus-nexthop
Copy link

lotus-nexthop commented Oct 30, 2025

Hi @judyjoseph please take a look when you have time

There is a mismatch between the comment and the functionality.
The comment says to log everything >= INFO
The behavior is log everything > INFO

    # Configure logger to log all messages INFO level and higher
    sonic_logger.set_min_log_priority(sonic_logger.DEFAULT_LOG_LEVEL)

In this PR we are updating the behavior to match the existing comment:
log everything >= INFO

Thanks!

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

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants