mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-23 08:03:11 +01:00
Call handle_first_entry in the warning/error-message generators.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
b8cc9c5a6a
commit
7bc66da663
@ -1088,6 +1088,8 @@ sub currentlineinfo() {
|
||||
}
|
||||
}
|
||||
|
||||
sub handle_first_entry();
|
||||
|
||||
#
|
||||
# Issue a Warning Message
|
||||
#
|
||||
@ -1096,6 +1098,8 @@ sub warning_message
|
||||
my $currentlineinfo = currentlineinfo;
|
||||
our @localtime;
|
||||
|
||||
handle_first_entry if $first_entry;
|
||||
|
||||
$| = 1; #Reset output buffering (flush any partially filled buffers).
|
||||
|
||||
if ( $log ) {
|
||||
@ -1180,6 +1184,8 @@ sub cleanup() {
|
||||
sub fatal_error {
|
||||
my $currentlineinfo = currentlineinfo;
|
||||
|
||||
handle_first_entry if $first_entry;
|
||||
|
||||
$| = 1; #Reset output buffering (flush any partially filled buffers).
|
||||
|
||||
if ( $log ) {
|
||||
@ -1208,6 +1214,8 @@ sub fatal_error {
|
||||
}
|
||||
|
||||
sub fatal_error1 {
|
||||
handle_first_entry if $first_entry;
|
||||
|
||||
$| = 1;
|
||||
|
||||
if ( $log ) {
|
||||
|
Loading…
Reference in New Issue
Block a user