$cur_info{$cur_pid}{parameters} .= " $line" if (!$error_only);
- } elsif (exists $cur_plan_info{$cur_pid}) {
+ } elsif (exists $cur_plan_info{$cur_pid}{plan}) {
$cur_plan_info{$cur_pid}{plan} .= "\n" . $line;
# Activate storage of the explain plan generated by auto_explain
} elsif ($prefix_vars{'t_query'} =~ s/duration: ([0-9\.]+) ms\s+plan://s) {
$cur_plan_info{$prefix_vars{'t_pid'}}{duration} = $1;
+ $cur_plan_info{$prefix_vars{'t_pid'}}{plan} = '';
$prefix_vars{'t_duration'} = $1; # needed to be saved later
# Log line without duration at all
} elsif ($prefix_vars{'t_query'} =~ s/(query|statement): //is) {