Skip to content
Snippets Groups Projects
Unverified Commit 16559186 authored by David Beniamine's avatar David Beniamine
Browse files

fixup

parent d6e90938
No related branches found
No related tags found
No related merge requests found
...@@ -244,7 +244,7 @@ sub format_log{ ...@@ -244,7 +244,7 @@ sub format_log{
my %args = @_; my %args = @_;
my $date = strftime("%F %X", localtime()); my $date = strftime("%F %X", localtime());
my $string = "$date\t$args{level}\t$args{message}\n"; my $string = "$date\t$args{level}\t$args{message}\n";
if( not utf8::is_unicode($string)){ if( not utf8::is_utf8($string)){
utf8::encode($string); utf8::encode($string);
} }
return $string; return $string;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment