Skip to content

Commit

Permalink
Merge pull request #3322 from openfoodfacts/remove_some_logs
Browse files Browse the repository at this point in the history
disable or remove some logs that fill test results and debug logs
  • Loading branch information
stephanegigandet authored Apr 25, 2020
2 parents e7fa8f7 + 9891a8c commit aaac69a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/ProductOpener/Display.pm
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ foreach my $file (sort keys %file_timestamps) {
$file_timestamps{$file} = (stat "$www_root/$file")[9];
}
else {
$log->info("A timestamped file does not exist. Falling back to process start time, in case we are running in different Docker containers.", { path => "$www_root/$file", source => $file_timestamps{$file}, fallback => $start_time }) if $log->is_info();
#$log->trace("A timestamped file does not exist. Falling back to process start time, in case we are running in different Docker containers.", { path => "$www_root/$file", source => $file_timestamps{$file}, fallback => $start_time }) if $log->is_trace();
$file_timestamps{$file} = $start_time;
}
}
Expand Down Expand Up @@ -1697,7 +1697,6 @@ sub display_list_of_tags($$) {
$tag_ref = get_taxonomy_tag_and_link_for_lang($lc, $tagtype, $tagid);
$link = "/$path/" . $tag_ref->{tagurl};
$css_class = $tag_ref->{css_class};
$log->info("tag ref: " . Dumper($tag_ref)) if $log->is_info();
}
else {
$link = canonicalize_tag_link($tagtype, $tagid);
Expand Down

0 comments on commit aaac69a

Please sign in to comment.