Skip to content

Commit

Permalink
fix: changed some log levels to debug (openfoodfacts#6335)
Browse files Browse the repository at this point in the history
Co-authored-by: off <[email protected]>
  • Loading branch information
stephanegigandet and off authored Jan 24, 2022
1 parent 240489f commit 085b2e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ProductOpener/Products.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1862,7 +1862,7 @@ sub compute_product_history_and_completeness($$$$) {
# if not found, we may be be updating the product, with the latest rev not set yet
if ((not defined $product_ref) or ($rev == $current_product_ref->{rev})) {
$product_ref = $current_product_ref;
$log->warn("specified product revision was not found, using current product ref", { revision => $rev }) if $log->is_warn();
$log->debug("specified product revision was not found, using current product ref", { revision => $rev }) if $log->is_debug();
}

if (defined $product_ref) {
Expand Down Expand Up @@ -2014,7 +2014,7 @@ sub compute_product_history_and_completeness($$$$) {
$diff = 'delete';
}
elsif ((defined $previous{$group}{$id}) and (defined $current{$group}{$id}) and ($previous{$group}{$id} ne $current{$group}{$id}) ) {
$log->info("difference in products detected", { id => $id, previous_rev => $previous{rev}, previous => $previous{$group}{$id}, current_rev => $current{rev}, current => $current{$group}{$id} }) if $log->is_info();
$log->debug("difference in products detected", { id => $id, previous_rev => $previous{rev}, previous => $previous{$group}{$id}, current_rev => $current{rev}, current => $current{$group}{$id} }) if $log->is_debug();
$diff = 'change';
}

Expand Down

0 comments on commit 085b2e6

Please sign in to comment.