Skip to content

perf: remove logging#41

Merged
rilshok merged 4 commits intodevfrom
rilshok/rm-logging
Apr 5, 2025
Merged

perf: remove logging#41
rilshok merged 4 commits intodevfrom
rilshok/rm-logging

Conversation

@rilshok
Copy link
Owner

@rilshok rilshok commented Apr 5, 2025

No description provided.

@rilshok rilshok requested a review from Copilot April 5, 2025 12:47
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

src/iokit/storage/storage.py:56

  • Replacing the logging call in the remove method with a no-op might hide alerts regarding unexpected removal attempts. Please ensure this change is intentional by providing proper documentation or alternative error handling if needed.
pass

@rilshok rilshok requested a review from Copilot April 5, 2025 12:57
@github-actions
Copy link

github-actions bot commented Apr 5, 2025

Tests Skipped Failures Errors Time
52 0 💤 0 ❌ 0 🔥 7.851s ⏱️

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (2)

src/iokit/storage/storage.py:57

  • [nitpick] Consider using a specific Warning subclass (e.g., ReadOnlyStorageWarning) for warnings in read-only storage to provide clearer context and easier filtering.
warnings.warn(msg, stacklevel=2)

src/iokit/storage/storage.py:61

  • [nitpick] Similarly, consider using a custom Warning subclass here for the removal operation to maintain consistency and improve warning categorization.
warnings.warn(msg, stacklevel=2)

@rilshok rilshok requested a review from Copilot April 5, 2025 13:08
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

src/iokit/storage/storage.py:57

  • [nitpick] Consider specifying an explicit warning category (e.g., UserWarning) when calling warnings.warn to ensure consistent warning handling across environments.
warnings.warn(msg, stacklevel=2)

@rilshok rilshok merged commit 8d9b1a4 into dev Apr 5, 2025
3 checks passed
@rilshok rilshok deleted the rilshok/rm-logging branch April 5, 2025 13:09
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.

2 participants