Gracefully handle missing logger object in self_error()
This commit is contained in:
parent
45044fd247
commit
92a27aaadc
@ -104,7 +104,7 @@ sub self_error {
|
||||
|
||||
# Log the error in the database if possible.
|
||||
$self -> {"logger"} -> log("error", 0, undef, $self -> {"errstr"})
|
||||
if($self -> {"errstr"});
|
||||
if($self -> {"logger"} && $self -> {"errstr"});
|
||||
|
||||
return undef;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user