Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ibigbug committed Nov 30, 2024
1 parent 3706bcd commit b0f59b2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions clash_lib/src/app/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use tokio::sync::broadcast::Sender;

use tracing::debug;
use tracing_appender::non_blocking::WorkerGuard;
#[cfg(target_os = "ios")]
use tracing_oslog::OsLogger;
use tracing_subscriber::{
filter::{self, filter_fn, Directive},
Expand Down Expand Up @@ -125,11 +126,10 @@ pub fn setup_logging(
None
};

let ios_os_log = if cfg!(target_os = "ios") {
Some(OsLogger::new("com.watfaq.clash", "default"))
} else {
None
};
#[cfg(target_os = "ios")]
let ios_os_log = Some(OsLogger::new("com.watfaq.clash", "default"));
#[cfg(not(target_os = "ios"))]
let ios_os_log = None;

Check failure on line 132 in clash_lib/src/app/logging.rs

View workflow job for this annotation

GitHub Actions / aarch64-apple-darwin-static-crt

type annotations needed for `std::option::Option<_>`

Check failure on line 132 in clash_lib/src/app/logging.rs

View workflow job for this annotation

GitHub Actions / aarch64-apple-darwin

type annotations needed for `std::option::Option<_>`

Check failure on line 132 in clash_lib/src/app/logging.rs

View workflow job for this annotation

GitHub Actions / x86_64-apple-darwin

type annotations needed for `std::option::Option<_>`

Check failure on line 132 in clash_lib/src/app/logging.rs

View workflow job for this annotation

GitHub Actions / x86_64-apple-darwin-static-crt

type annotations needed for `std::option::Option<_>`

Check failure on line 132 in clash_lib/src/app/logging.rs

View workflow job for this annotation

GitHub Actions / riscv64gc-unknown-linux-gnu

type annotations needed for `std::option::Option<_>`

Check failure on line 132 in clash_lib/src/app/logging.rs

View workflow job for this annotation

GitHub Actions / i686-unknown-linux-gnu-static-crt

type annotations needed for `std::option::Option<_>`

Check failure on line 132 in clash_lib/src/app/logging.rs

View workflow job for this annotation

GitHub Actions / i686-unknown-linux-gnu

type annotations needed for `std::option::Option<_>`

Check failure on line 132 in clash_lib/src/app/logging.rs

View workflow job for this annotation

GitHub Actions / armv7-unknown-linux-gnueabi-static-crt

type annotations needed for `std::option::Option<_>`

Check failure on line 132 in clash_lib/src/app/logging.rs

View workflow job for this annotation

GitHub Actions / aarch64-unknown-linux-gnu

type annotations needed for `std::option::Option<_>`

Check failure on line 132 in clash_lib/src/app/logging.rs

View workflow job for this annotation

GitHub Actions / armv7-unknown-linux-gnueabi

type annotations needed for `std::option::Option<_>`

Check failure on line 132 in clash_lib/src/app/logging.rs

View workflow job for this annotation

GitHub Actions / armv7-unknown-linux-gnueabihf

type annotations needed for `std::option::Option<_>`

Check failure on line 132 in clash_lib/src/app/logging.rs

View workflow job for this annotation

GitHub Actions / x86_64-unknown-linux-gnu

type annotations needed for `std::option::Option<_>`

Check failure on line 132 in clash_lib/src/app/logging.rs

View workflow job for this annotation

GitHub Actions / x86_64-linux-android

type annotations needed for `std::option::Option<_>`

Check failure on line 132 in clash_lib/src/app/logging.rs

View workflow job for this annotation

GitHub Actions / x86_64-unknown-linux-musl

type annotations needed for `std::option::Option<_>`

Check failure on line 132 in clash_lib/src/app/logging.rs

View workflow job for this annotation

GitHub Actions / x86_64-unknown-linux-gnu-static-crt

type annotations needed for `std::option::Option<_>`

Check failure on line 132 in clash_lib/src/app/logging.rs

View workflow job for this annotation

GitHub Actions / aarch64-unknown-linux-gnu-static-crt

type annotations needed for `std::option::Option<_>`

Check failure on line 132 in clash_lib/src/app/logging.rs

View workflow job for this annotation

GitHub Actions / i686-linux-android

type annotations needed for `std::option::Option<_>`

Check failure on line 132 in clash_lib/src/app/logging.rs

View workflow job for this annotation

GitHub Actions / aarch64-unknown-linux-musl

type annotations needed for `std::option::Option<_>`

Check failure on line 132 in clash_lib/src/app/logging.rs

View workflow job for this annotation

GitHub Actions / aarch64-linux-android

type annotations needed for `std::option::Option<_>`

Check failure on line 132 in clash_lib/src/app/logging.rs

View workflow job for this annotation

GitHub Actions / armv7-linux-androideabi

type annotations needed for `std::option::Option<_>`

Check failure on line 132 in clash_lib/src/app/logging.rs

View workflow job for this annotation

GitHub Actions / armv7-unknown-linux-musleabihf

type annotations needed for `std::option::Option<_>`

Check failure on line 132 in clash_lib/src/app/logging.rs

View workflow job for this annotation

GitHub Actions / aarch64-pc-windows-msvc-static-crt

type annotations needed for `std::option::Option<_>`

Check failure on line 132 in clash_lib/src/app/logging.rs

View workflow job for this annotation

GitHub Actions / aarch64-pc-windows-msvc

type annotations needed for `std::option::Option<_>`

Check failure on line 132 in clash_lib/src/app/logging.rs

View workflow job for this annotation

GitHub Actions / x86_64-pc-windows-msvc

type annotations needed for `std::option::Option<_>`

Check failure on line 132 in clash_lib/src/app/logging.rs

View workflow job for this annotation

GitHub Actions / x86_64-pc-windows-msvc-static-crt

type annotations needed for `std::option::Option<_>`

Check failure on line 132 in clash_lib/src/app/logging.rs

View workflow job for this annotation

GitHub Actions / i686-pc-windows-msvc-static-crt

type annotations needed for `std::option::Option<_>`

Check failure on line 132 in clash_lib/src/app/logging.rs

View workflow job for this annotation

GitHub Actions / i686-pc-windows-msvc

type annotations needed for `std::option::Option<_>`

let (appender, g) = if let Some(log_file) = log_file {
let file_appender = tracing_appender::rolling::daily(cwd, log_file);
Expand Down

0 comments on commit b0f59b2

Please sign in to comment.