Fix Can't call method 'notes' on unblessed reference in plugins/logging/file. (#272)
This commit is contained in:
parent
e551786a9e
commit
494dc95b72
@ -279,6 +279,7 @@ sub hook_logging {
|
|||||||
if ( !$self->{_f}
|
if ( !$self->{_f}
|
||||||
|| !$self->{_nosplit}
|
|| !$self->{_nosplit}
|
||||||
|| !$transaction
|
|| !$transaction
|
||||||
|
|| !UNIVERSAL::can($transaction, 'notes')
|
||||||
|| !$transaction->notes('file-logged-this-session'))
|
|| !$transaction->notes('file-logged-this-session'))
|
||||||
{
|
{
|
||||||
unless (defined $self->maybe_reopen($transaction)) {
|
unless (defined $self->maybe_reopen($transaction)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user