We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e11231a commit 996e06aCopy full SHA for 996e06a
src/telemetry.rs
@@ -1,3 +1,4 @@
1
+use log::error;
2
use reqwest::blocking::Client;
3
use serde::Serialize;
4
use std::panic::{self, AssertUnwindSafe};
@@ -193,6 +194,9 @@ pub fn send_log(level: LogLevel, message: &str) {
193
194
/// Installs a panic hook that logs panics and sends crash reports
195
pub fn install_panic_hook() {
196
panic::set_hook(Box::new(|panic_info| {
197
+ // Log the panic to both stderr and log file
198
+ error!("Application panicked: {:?}", panic_info);
199
+
200
// Filter out secondary "panic in a function that cannot unwind" panics
201
if let Some(location) = panic_info.location() {
202
if location.file().contains("panicking.rs") {
0 commit comments