Skip Menu |

This queue is for tickets about the Catalyst-Plugin-I18N-DBI CPAN distribution.

Report information
The Basics
Id: 86314
Status: new
Priority: 0/
Queue: Catalyst-Plugin-I18N-DBI

People
Owner: Nobody in particular
Requestors: RENTOCRON [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: [debug] messages even when debug is off
Hello, i just append 'if $c->debug;' on $c->log->debug calls, because it pollute the tests output, especially when you are running with -j! Thank you!
Subject: debug.messages.patch
--- /home/renato/perl5/perlbrew/perls/perl-5.16.2/lib/site_perl/5.16.2/Catalyst/Plugin/I18N/DBI.pm 2013-06-21 18:25:52.384652193 -0300 +++ /tmp/DBI.pm 2013-06-21 18:24:12.112656663 -0300 @@ -29,7 +29,7 @@ <% $c->loc('Hello [_1]', 'Catalyst') %> -Or in your TT code (with macro): +Or in your TT code (with macro): [% MACRO l(text, args) BLOCK; c.loc(text, args); @@ -186,7 +186,7 @@ my $c = shift; $c->_init_i18n; - $c->log->debug("I18N Initialized") if $c->debug; + $c->log->debug("I18N Initialized"); }; sub _init_i18n { @@ -223,7 +223,7 @@ if ($@) { $c->log->error(qq|Couldn't initialize I18N for lexicon $lang/$lex, "$@"|); } else { - $c->log->debug(qq|Lexicon $lang/$lex loaded|) if $c->debug; + $c->log->debug(qq|Lexicon $lang/$lex loaded|); } } @@ -276,7 +276,7 @@ I recommend to test both modules and decide which one is more suitable depending on your production environment. -=head2 Why does the database user needs write access? Or: What's the C<fail_with> function? +=head2 Why does the database user needs write access? Or: What's the C<fail_with> function? C<C::P::I18N::DBI> implements a C<fail_with> method that attempts to create a new database entry whenever a lexicon lookup fails. The value is set to the lexicon