Skip to content

Commit

Permalink
allow logger to log structured data
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanegigandet committed May 22, 2024
1 parent af0cf91 commit 94400e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/ProductOpener/Display.pm
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ use Tie::IxHash;
use Log::Any '$log', default_adapter => 'Stderr';

# special logger to make it easy to measure memcached hit and miss rates
our $mongodb_log = Log::Log4perl->get_logger('mongodb');
our $mongodb_log = Log::Any->get_logger(category => 'mongodb');
$mongodb_log->info("start") if $mongodb_log->is_info();

use Apache2::RequestUtil ();
Expand Down
3 changes: 1 addition & 2 deletions lib/ProductOpener/Routing.pm
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ use URI::Escape::XS;
use Log::Any qw($log);

# Specific logger to track rate-limiter operations
our $ratelimiter_log = Log::Log4perl->get_logger('ratelimiter');

our $ratelimiter_log = Log::Any->get_logger(category => 'ratelimiter');

=head2 sub extract_tagtype_and_tag_value_pairs_from_components($request_ref, $components_ref)
Expand Down

0 comments on commit 94400e8

Please sign in to comment.