Skip to content

Commit

Permalink
debugs
Browse files Browse the repository at this point in the history
  • Loading branch information
zo-el committed Jul 25, 2024
1 parent bd342cd commit af849ec
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@ pub async fn should_be_enabled(
if !host_happ_preferences.is_happ_publisher_in_valid_jurisdiction(
&happ_registration_details.publisher_jurisdiction,
) {
warn!("Happ {} will be disabled/uninstalled", installed_happ_id);
warn!(
"Happ {} will be disabled/uninstalled because publisher is in invalid jurisdiction ",
installed_happ_id
);
// Return false; app should not remain installed/enabled if publisher juridiction is invalid
return false;
}
Expand All @@ -204,7 +207,7 @@ pub async fn should_be_enabled(
&happ_registration_details.happ_jurisdictions,
) {
warn!(
"Happ {} will be will be disabled/uninstalled",
"Happ {} will be will be disabled/uninstalled because host is in invalid jurisdiction",
installed_happ_id
);
// Return false; app should not remain installed/enabled if host juridiction is invalid
Expand All @@ -215,7 +218,7 @@ pub async fn should_be_enabled(
if !host_happ_preferences.is_happ_valid_category(&happ_registration_details.happ_categories)
{
warn!(
"Happ {} will be will be disabled/uninstalled",
"Happ {} will be will be disabled/uninstalled because happ category is invalid based on host preferences",
installed_happ_id
);
// Return false; app should not remain installed/enabled if happ category is invalid
Expand Down

0 comments on commit af849ec

Please sign in to comment.