From b1726fc1cc33445bd5787d2a1c6a8143d85a8859 Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Thu, 12 Oct 2023 17:46:19 +0800 Subject: Forgot to allow write access to log file --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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(), -- cgit v1.2.3