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

fix(server): improve logging for deleted file #235

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

tessus
Copy link
Collaborator

@tessus tessus commented Jan 31, 2024

Description

This change converts a path to a string.

Motivation and Context

Before

<TIMESTAMP> INFO rustypaste::server: deleted file: Path("file-to-delete.txt")

After

<TIMESTAMP> INFO rustypaste::server: deleted file: "file-to-delete.txt"

How Has This Been Tested?

  • manually
  • fixtures (no new tests)
  • cargo test (no new tests)

Changelog Entry

### Changed

- Improved server side logging when deleting a file

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (no code change)
  • Refactor (refactoring production code)
  • Other

Checklist:

  • My code follows the code style of this project.
  • I have updated the documentation accordingly.
  • I have formatted the code with rustfmt.
  • I checked the lints with clippy.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@tessus tessus requested a review from orhun as a code owner January 31, 2024 04:34
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8de2450) 70.11% compared to head (40559f7) 70.11%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #235   +/-   ##
=======================================
  Coverage   70.11%   70.11%           
=======================================
  Files          11       11           
  Lines         609      609           
=======================================
  Hits          427      427           
  Misses        182      182           
Flag Coverage Δ
unit-tests 70.11% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Owner

@orhun orhun left a comment

Choose a reason for hiding this comment

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

Nice!

@orhun orhun merged commit 48a3626 into orhun:master Jan 31, 2024
8 of 9 checks passed
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.

3 participants