@@ -304,6 +304,7 @@ sub doit
304304 # Check and increment request count
305305 my $request_count = $rate_limit_cache -> get($client_ip ) || 0;
306306
307+ # TODO: update the vwf_log variable to point here
307308 $vwflog ||= $config -> vwflog() || File::Spec-> catfile($info -> logdir(), ' vwf.log' );
308309
309310 # Rate limit by IP
@@ -620,11 +621,11 @@ sub vwflog
620621 ' "' , $lingua -> country(), ' ",' ,
621622 ' "' , $info -> browser_type(), ' ",' ,
622623 ' "' , $lingua -> language(), ' ",' ,
623- ' 429 ,' ,
624- ' "",' ,
624+ $info -> status(), ' ,' ,
625+ ' "' , $log -> template() ? $log -> template() : ' ' , ' ",' ,
625626 ' "' , $info -> as_string(raw => 1), ' ",' ,
626627 ' "' , $info -> warnings_as_string(), ' ",' ,
627- ' "$message"' ,
628+ ' "' , $message , ' "' ,
628629 " \n " ;
629630 close ($log );
630631 }
@@ -646,7 +647,7 @@ sub vwflog
646647 $log -> template() ? $log -> template() : ' ' ,
647648 $info -> as_string(raw => 1),
648649 $info -> warnings_as_string(),
649- ' "' , $message , ' "' ,
650+ ' "' , $message , ' "'
650651 );
651652 closelog();
652653 }
0 commit comments