Checking in progress, though not fully working as expected
This commit is contained in:
@@ -25,17 +25,7 @@ impl ipc::ServiceImpl for LogServiceImpl {
|
||||
let log_fn = || {
|
||||
log::log!(target: target.as_str(), level, "{message}");
|
||||
};
|
||||
cfg_if::cfg_if! {
|
||||
if #[cfg(feature = "crash_reporting")] {
|
||||
// Explicitly write the log line in the context of the main
|
||||
// Sentry hub; this log receiver thread is spawned before
|
||||
// Sentry is configured, so the thread-local hub doesn't
|
||||
// have the appropriate client and scope configuration.
|
||||
sentry::Hub::run(sentry::Hub::main(), log_fn);
|
||||
} else {
|
||||
log_fn();
|
||||
}
|
||||
}
|
||||
log_fn();
|
||||
LogServiceResponse { success: true }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user