sub show_error_as_html
{
+
return if (scalar keys %error_info == 0);
print $fh qq{
delete $cur_info{$t_pid};
}
}
-
# When we are ready to overwrite the last storage, add it to the global stats
if ( ($prefix_vars{'t_loglevel'} =~ /LOG|FATAL|PANIC|ERROR|WARNING|HINT/)
&& exists $cur_info{$t_pid}
{
$prefix_vars{'t_duration'} = $1;
$t_action = $2;
+ # Skipping parse and bind logs
+ return if ($t_action !~ /query|statement|execute/);
# Log line without duration at all
} elsif ($prefix_vars{'t_query'} =~ s/(query|statement): //is) {
$t_action = $1;
} elsif ($prefix_vars{'t_query'} =~ s/(prepare|parse|bind|execute|execute from fetch)\s+[^:]+:\s//is)
{
$t_action = $1;
+ # Skipping parse and bind logs
+ return if ($t_action !~ /query|statement|execute/);
# Log line that should not be parse
} elsif ($prefix_vars{'t_loglevel'} eq 'LOG') {
if ($prefix_vars{'t_query'} !~
return;
}
- # Skipping parse and bind logs
- return if ($t_action !~ /query|statement|execute/);
-
&set_current_infos($t_pid);
return 1;