TT#49552 Use Log::Log4perl->warn instead of waning

Change-Id: I5a4dd2df8a87604d40750f232f88b20a08d501dd
(cherry picked from commit 2b9b53e1d4e34213896c58955ad059586c392617)
changes/39/25939/1
Irina Peshinskaya 6 years ago
parent 4a2ad9828f
commit 335a09bc8d

@ -509,7 +509,7 @@ sub _set_session_tz_from_row {
$tz_name =~ s/^localtime$/local/ if $tz_name; $tz_name =~ s/^localtime$/local/ if $tz_name;
eval { $c->session->{user_tz} = DateTime::TimeZone->new( name => $tz_name ); }; eval { $c->session->{user_tz} = DateTime::TimeZone->new( name => $tz_name ); };
if ($@) { if ($@) {
$c->log->warning("couldnt set timezone. error in creation probably caused by invalid timezone name. role $role ($identifier) to $tz_name"); $c->log->warn("couldnt set timezone. error in creation probably caused by invalid timezone name. role $role ($identifier) to $tz_name");
} else { } else {
$c->session->{user_tz_name} = $tz_name; $c->session->{user_tz_name} = $tz_name;
$c->log->debug("timezone set for $role ($identifier) to $tz_name"); $c->log->debug("timezone set for $role ($identifier) to $tz_name");

Loading…
Cancel
Save