Log even when we aren't in a transaction
This should allow the logging/file plugin to log even if it isn't called from within a transaction
This commit is contained in:
parent
b93608f27a
commit
b130e6a59e
@ -263,13 +263,15 @@ sub hook_logging {
|
||||
# - It's not already open
|
||||
# - We're allowed to split sessions across logfiles
|
||||
# - We haven't logged anything yet this session
|
||||
# - We aren't in a session
|
||||
if (!$self->{_f} ||
|
||||
!$self->{_nosplit} ||
|
||||
!$transaction ||
|
||||
!$transaction->notes('file-logged-this-session')) {
|
||||
unless (defined $self->maybe_reopen($transaction)) {
|
||||
return DECLINED;
|
||||
}
|
||||
$transaction->notes('file-logged-this-session', 1);
|
||||
$transaction->notes('file-logged-this-session', 1) if $transaction;
|
||||
}
|
||||
|
||||
my $f = $self->{_f};
|
||||
|
Loading…
Reference in New Issue
Block a user