diff options
author | cyqsimon <28627918+cyqsimon@users.noreply.github.com> | 2023-10-12 17:46:19 +0800 |
---|---|---|
committer | cyqsimon <28627918+cyqsimon@users.noreply.github.com> | 2023-10-12 17:46:19 +0800 |
commit | b1726fc1cc33445bd5787d2a1c6a8143d85a8859 (patch) | |
tree | cfbda495b0e835579fb651d0667322b7bde56488 | |
parent | a9c199f8123a7d2f821b8d200a3dd272a434bc0a (diff) |
Forgot to allow write access to log file
-rw-r--r-- | src/main.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index f55a116..72d4528 100644 --- a/src/main.rs +++ b/src/main.rs @@ -41,7 +41,10 @@ fn main() -> anyhow::Result<()> { // init logging if let Some(ref log_path) = opts.log_to { - let log_file = File::options().create_new(true).open(log_path)?; + let log_file = File::options() + .write(true) + .create_new(true) + .open(log_path)?; WriteLogger::init( opts.verbosity.log_level_filter(), Default::default(), |