mirror of
https://github.com/snowfallorg/nix-software-center.git
synced 2024-09-11 21:27:09 +03:00
Increase logging
This commit is contained in:
parent
f9e4c4d0c2
commit
56f3326324
@ -49,8 +49,9 @@ impl Worker for WindowAsyncHandler {
|
|||||||
relm4::spawn(async move {
|
relm4::spawn(async move {
|
||||||
match checkcache(syspkgs2, userpkgs2, config) {
|
match checkcache(syspkgs2, userpkgs2, config) {
|
||||||
Ok(_) => {}
|
Ok(_) => {}
|
||||||
Err(_) => {
|
Err(e) => {
|
||||||
warn!("FAILED TO CHECK CACHE");
|
warn!("FAILED TO CHECK CACHE");
|
||||||
|
warn!("{}", e);
|
||||||
sender.output(AppMsg::LoadError(
|
sender.output(AppMsg::LoadError(
|
||||||
String::from("Could not load cache"),
|
String::from("Could not load cache"),
|
||||||
String::from(
|
String::from(
|
||||||
@ -62,8 +63,9 @@ impl Worker for WindowAsyncHandler {
|
|||||||
}
|
}
|
||||||
let pkgs = match readpkgs().await {
|
let pkgs = match readpkgs().await {
|
||||||
Ok(pkgs) => pkgs,
|
Ok(pkgs) => pkgs,
|
||||||
Err(_) => {
|
Err(e) => {
|
||||||
warn!("FAILED TO LOAD PKGS");
|
warn!("FAILED TO LOAD PKGS");
|
||||||
|
warn!("{}", e);
|
||||||
sender.output(AppMsg::LoadError(
|
sender.output(AppMsg::LoadError(
|
||||||
String::from("Could not load packages"),
|
String::from("Could not load packages"),
|
||||||
String::from(
|
String::from(
|
||||||
@ -78,8 +80,9 @@ impl Worker for WindowAsyncHandler {
|
|||||||
SystemPkgs::Legacy => {
|
SystemPkgs::Legacy => {
|
||||||
match readlegacysyspkgs() {
|
match readlegacysyspkgs() {
|
||||||
Ok(newpkgs) => newpkgs,
|
Ok(newpkgs) => newpkgs,
|
||||||
Err(_) => {
|
Err(e) => {
|
||||||
warn!("FAILED TO LOAD NEW PKGS");
|
warn!("FAILED TO LOAD NEW PKGS");
|
||||||
|
warn!("{}", e);
|
||||||
sender.output(AppMsg::LoadError(
|
sender.output(AppMsg::LoadError(
|
||||||
String::from("Could not load new packages"),
|
String::from("Could not load new packages"),
|
||||||
String::from(
|
String::from(
|
||||||
@ -93,8 +96,9 @@ impl Worker for WindowAsyncHandler {
|
|||||||
SystemPkgs::Flake => {
|
SystemPkgs::Flake => {
|
||||||
match readflakesyspkgs() {
|
match readflakesyspkgs() {
|
||||||
Ok(newpkgs) => newpkgs,
|
Ok(newpkgs) => newpkgs,
|
||||||
Err(_) => {
|
Err(e) => {
|
||||||
warn!("FAILED TO LOAD NEW PKGS");
|
warn!("FAILED TO LOAD NEW PKGS");
|
||||||
|
warn!("{}", e);
|
||||||
sender.output(AppMsg::LoadError(
|
sender.output(AppMsg::LoadError(
|
||||||
String::from("Could not load new packages"),
|
String::from("Could not load new packages"),
|
||||||
String::from(
|
String::from(
|
||||||
|
Loading…
Reference in New Issue
Block a user