We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d0dc62 commit d7a3b26Copy full SHA for d7a3b26
1 file changed
cgi-bin/page.fcgi
@@ -774,12 +774,14 @@ sub vwflog
774
}
775
$warnings ||= '';
776
777
+ my $country = $lingua->country() || 'unknown';
778
+
779
if(open(my $fout, '>>', $vwflog)) {
780
print $fout
781
'"', $info->domain_name(), '",',
782
'"', strftime('%F %T', localtime), '",',
783
'"', ($ENV{REMOTE_ADDR} ? $ENV{REMOTE_ADDR} : ''), '",',
- '"', $lingua->country(), '",',
784
+ '"', $country, '",',
785
'"', $info->browser_type(), '",',
786
'"', $lingua->language(), '",',
787
$info->status(), ',',
@@ -805,7 +807,7 @@ sub vwflog
805
807
Sys::Syslog::syslog('info|local0', '%s %s %s %s %s %d %s %s %d %s %s',
806
808
$info->domain_name() || '',
809
$ENV{REMOTE_ADDR} || '',
- $lingua->country() || '',
810
+ $country,
811
$info->browser_type() || '',
812
$lingua->language() || '',
813
$info->status() || '',
0 commit comments