Skip to content

Commit

Permalink
chore: Send log files to ~/.cache/bluebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpinder committed Nov 4, 2024
1 parent 86b7cc5 commit e67a427
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions process/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ pub struct Logger {

impl Logger {
const TRIGGER_FILE_SIZE: u64 = 10 * 1024;
const ARCHIVE_FILENAME_PATTERN: &'static str = "bluebuild-log.{}.log";
const LOG_FILENAME: &'static str = "bluebuild-log.log";
const ARCHIVE_FILENAME_PATTERN: &'static str = "bluebuild.{}.log";
const LOG_FILENAME: &'static str = "bluebuild.log";
const LOG_FILE_COUNT: u32 = 4;

#[must_use]
Expand Down Expand Up @@ -88,7 +88,7 @@ impl Logger {
pub fn init(&self) {
let home = env::var("HOME").expect("$HOME should be defined");
let log_dir = self.log_dir.as_ref().map_or_else(
|| Path::new(home.as_str()).join(".local/share/bluebuild"),
|| Path::new(home.as_str()).join(".cache/bluebuild"),
Clone::clone,
);

Expand Down

0 comments on commit e67a427

Please sign in to comment.