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",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "log-panics"
|
||||
version = "2.1.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "68f9dd8546191c1850ecf67d22f5ff00a935b890d0e84713159a55495cc2ac5f"
|
||||
dependencies = [
|
||||
"log",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "malloc_buf"
|
||||
version = "0.0.6"
|
||||
@@ -2305,6 +2314,7 @@ dependencies = [
|
||||
"libc",
|
||||
"libloading",
|
||||
"log",
|
||||
"log-panics",
|
||||
"memmap2",
|
||||
"native-dialog",
|
||||
"normpath",
|
||||
|
||||
@@ -78,6 +78,7 @@ memmap2 = "0.9"
|
||||
webview2-com = "0.33"
|
||||
windows = "0.58"
|
||||
cbindgen = "0.27"
|
||||
log-panics = "2.1.0"
|
||||
|
||||
# default to small, optimized workspace release binaries
|
||||
[profile.release]
|
||||
|
||||
@@ -62,6 +62,7 @@ file-rotate.workspace = true
|
||||
wait-timeout.workspace = true
|
||||
pretty-bytes-rust.workspace = true
|
||||
enum-flags.workspace = true
|
||||
log-panics.workspace = true
|
||||
|
||||
[target.'cfg(unix)'.dependencies]
|
||||
native-dialog.workspace = true
|
||||
|
||||
@@ -29,6 +29,7 @@ pub fn setup_logging(process_name: &str, file: Option<&PathBuf>, console: bool,
|
||||
}
|
||||
|
||||
CombinedLogger::init(loggers)?;
|
||||
log_panics::init();
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user