mirror of
https://github.com/BioArchLinux/bioarchlinux-packages.git
synced 2025-03-10 06:24:00 +00:00
feat: add sentry support
This commit is contained in:
parent
cbe65d8c2a
commit
e56207fff1
4 changed files with 1646 additions and 109 deletions
|
@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- Format datetime in locale format [github#1](https://github.com/imlonghao/archlinuxcn-packages/pull/1)
|
- Format datetime in locale format [github#1](https://github.com/imlonghao/archlinuxcn-packages/pull/1)
|
||||||
|
- Support Sentry error tracking
|
||||||
|
|
||||||
## [0.2.3] - 2022-01-23
|
## [0.2.3] - 2022-01-23
|
||||||
|
|
||||||
|
|
1743
Cargo.lock
generated
1743
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -16,6 +16,8 @@ deadpool-postgres = "0.10.1"
|
||||||
enum-display-derive = "0.1.1"
|
enum-display-derive = "0.1.1"
|
||||||
pg_bigdecimal = "0.1.4"
|
pg_bigdecimal = "0.1.4"
|
||||||
postgres-types = { version = "0.2.2", features = ["derive"]}
|
postgres-types = { version = "0.2.2", features = ["derive"]}
|
||||||
|
sentry = "0.24.2"
|
||||||
|
sentry-actix = "0.24.2"
|
||||||
serde = { version = "1.0.136", features = ["derive"] }
|
serde = { version = "1.0.136", features = ["derive"] }
|
||||||
tokio-postgres = { version = "0.7.5", features = ["with-chrono-0_4"]}
|
tokio-postgres = { version = "0.7.5", features = ["with-chrono-0_4"]}
|
||||||
yaml-rust = "0.4.5"
|
yaml-rust = "0.4.5"
|
||||||
|
|
|
@ -251,6 +251,15 @@ async fn get_pkg_log(
|
||||||
|
|
||||||
#[actix_web::main]
|
#[actix_web::main]
|
||||||
async fn main() -> std::io::Result<()> {
|
async fn main() -> std::io::Result<()> {
|
||||||
|
let _guard = sentry::init((
|
||||||
|
std::env::var("SENTRY").unwrap(),
|
||||||
|
sentry::ClientOptions {
|
||||||
|
release: sentry::release_name!(),
|
||||||
|
..Default::default()
|
||||||
|
},
|
||||||
|
));
|
||||||
|
std::env::set_var("RUST_BACKTRACE", "1");
|
||||||
|
|
||||||
let mut cfg = deadpool_postgres::Config::new();
|
let mut cfg = deadpool_postgres::Config::new();
|
||||||
cfg.user = Some("imlonghao".to_string());
|
cfg.user = Some("imlonghao".to_string());
|
||||||
cfg.dbname = Some("lilydjwg".to_string());
|
cfg.dbname = Some("lilydjwg".to_string());
|
||||||
|
|
Loading…
Add table
Reference in a new issue