mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Add panic logging
This commit is contained in:
10
Cargo.lock
generated
10
Cargo.lock
generated
@@ -1236,6 +1236,15 @@ dependencies = [
|
|||||||
"value-bag",
|
"value-bag",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "log-panics"
|
||||||
|
version = "2.1.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "68f9dd8546191c1850ecf67d22f5ff00a935b890d0e84713159a55495cc2ac5f"
|
||||||
|
dependencies = [
|
||||||
|
"log",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "malloc_buf"
|
name = "malloc_buf"
|
||||||
version = "0.0.6"
|
version = "0.0.6"
|
||||||
@@ -2305,6 +2314,7 @@ dependencies = [
|
|||||||
"libc",
|
"libc",
|
||||||
"libloading",
|
"libloading",
|
||||||
"log",
|
"log",
|
||||||
|
"log-panics",
|
||||||
"memmap2",
|
"memmap2",
|
||||||
"native-dialog",
|
"native-dialog",
|
||||||
"normpath",
|
"normpath",
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ memmap2 = "0.9"
|
|||||||
webview2-com = "0.33"
|
webview2-com = "0.33"
|
||||||
windows = "0.58"
|
windows = "0.58"
|
||||||
cbindgen = "0.27"
|
cbindgen = "0.27"
|
||||||
|
log-panics = "2.1.0"
|
||||||
|
|
||||||
# default to small, optimized workspace release binaries
|
# default to small, optimized workspace release binaries
|
||||||
[profile.release]
|
[profile.release]
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ file-rotate.workspace = true
|
|||||||
wait-timeout.workspace = true
|
wait-timeout.workspace = true
|
||||||
pretty-bytes-rust.workspace = true
|
pretty-bytes-rust.workspace = true
|
||||||
enum-flags.workspace = true
|
enum-flags.workspace = true
|
||||||
|
log-panics.workspace = true
|
||||||
|
|
||||||
[target.'cfg(unix)'.dependencies]
|
[target.'cfg(unix)'.dependencies]
|
||||||
native-dialog.workspace = true
|
native-dialog.workspace = true
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ pub fn setup_logging(process_name: &str, file: Option<&PathBuf>, console: bool,
|
|||||||
}
|
}
|
||||||
|
|
||||||
CombinedLogger::init(loggers)?;
|
CombinedLogger::init(loggers)?;
|
||||||
|
log_panics::init();
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user