Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(nm): org.eclipse.kura.nm log cleanup/update #4535

Merged

Conversation

mattdibi
Copy link
Contributor

@mattdibi mattdibi commented Apr 5, 2023

This PR:

  • removes two logs in the enableInterface method that were not carrying much useful informations and cluttering the log
  • lower the log entry for the getAssociatedConnections method from info to debug
  • adds a log entry for when the scheduled timer is cancelled due to a clearTimer method call. This allows for a better understanding of the overall timer status on the system and is consistent with the rest of the code.

image

This is the resulting configuration log:

image

@pierantoniomerlino
Copy link
Contributor

Do you prefer the info or debug level here?

@mattdibi
Copy link
Contributor Author

mattdibi commented Apr 5, 2023

@pierantoniomerlino info since this should be at the same level as the timer scheduling and the other log entry where the timer is cancelled. I think all of these are pretty important and are worth enough to be on the info level.

@mattdibi mattdibi changed the title refactor(nm): add missing log entry on modem reset cancel refactor(nm): org.eclipse.kura.nm log cleanup/update Apr 5, 2023
@MMaiero
Copy link
Contributor

MMaiero commented Apr 5, 2023

Tests seem to fail. Expected?

@mattdibi
Copy link
Contributor Author

mattdibi commented Apr 5, 2023

Tests seem to fail. Expected?

Uh... quite the opposite actually. Will look into it.

@mattdibi mattdibi force-pushed the matt/feat/log_entry_modem_reset branch from ca525f0 to 7019e63 Compare April 6, 2023 06:29
@mattdibi
Copy link
Contributor Author

mattdibi commented Apr 7, 2023

The current tests error seem unrelated to this PR and might be solved in #4544, will rebase after that merge.

@mattdibi mattdibi force-pushed the matt/feat/log_entry_modem_reset branch from 7019e63 to 3ed9657 Compare April 7, 2023 08:55
@MMaiero MMaiero merged commit 9b64377 into eclipse-kura:develop Apr 7, 2023
github-actions bot pushed a commit that referenced this pull request Apr 7, 2023
* refactor(nm): add missing log entry on modem reset cancel

* refactor: lower overall log verbosity

(cherry picked from commit 9b64377)
MMaiero pushed a commit that referenced this pull request Apr 7, 2023
…ase-5.3.0] (#4551)

refactor(nm): `org.eclipse.kura.nm` log cleanup/update (#4535)

* refactor(nm): add missing log entry on modem reset cancel

* refactor: lower overall log verbosity

(cherry picked from commit 9b64377)

Co-authored-by: Mattia Dal Ben <[email protected]>
@mattdibi mattdibi deleted the matt/feat/log_entry_modem_reset branch April 7, 2023 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants