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

misc: mark remove placeholder webapp as done + renamed get_log_file -> get_log_filepath #71

Merged
merged 2 commits into from
Feb 6, 2025

Conversation

0xbrayo
Copy link
Member

@0xbrayo 0xbrayo commented Feb 6, 2025

Important

Mark "Remove placeholder Vue app" as done in README.md and rename get_log_file() to get_log_filepath() in the codebase.

  • Documentation:
    • Marked "Remove placeholder Vue app" as done in README.md.
  • Code Changes:
    • Renamed get_log_file() to get_log_filepath() in src-tauri/src/lib.rs and src-tauri/src/logging.rs.

This description was created by Ellipsis for 904d553. It will automatically update as commits are pushed.

Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Reviewed everything up to 904d553 in 1 minute and 41 seconds

More details
  • Looked at 62 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 5 drafted comments based on config settings.
1. src-tauri/src/logging.rs:8
  • Draft comment:
    Potential bug: 'create_dir_all' is called on a file path. Use the parent directory instead, e.g., create_dir_all(&log_path.parent().unwrap()) to ensure the log directory exists.
  • Reason this comment was not posted:
    Marked as duplicate.
2. README.md:67
  • Draft comment:
    Checklist updated: Marking 'Remove placeholder Vue app' as done. Looks good if feature is complete.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50%
    None
3. src-tauri/src/lib.rs:460
  • Draft comment:
    Function name updated to get_log_filepath appears consistent with renaming in the logging module.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50%
    None
4. src-tauri/src/logging.rs:7
  • Draft comment:
    Potential bug: get_log_filepath returns the full log file path, but setup_logging calls create_dir_all on it and then appends the filename again. This may create an incorrect directory path (e.g. .../aw-tauri.log/aw-tauri.log).
  • Reason this comment was not posted:
    Comment was on unchanged code.
5. src-tauri/src/logging.rs:17
  • Draft comment:
    Changed trace color from White to BrightBlue looks intentional.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50%
    None

Workflow ID: wflow_9wd1AvqDtFZoyVTJ


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@0xbrayo 0xbrayo merged commit 941a22c into ActivityWatch:master Feb 6, 2025
5 checks passed
@@ -51,7 +49,8 @@ pub fn setup_logging() -> Result<(), fern::InitError> {
Ok(())
}

pub fn get_log_file() -> PathBuf {
pub fn get_log_filepath() -> PathBuf {
Copy link
Member

Choose a reason for hiding this comment

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

Not to be nitty, but I think get_log_path would be the best name 😅 (no need to change though)

Copy link
Member Author

Choose a reason for hiding this comment

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

Spent almost 5 mins debating it lol. Chose wrong😅. Will sneak the change in the next PR.

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