Skip to content

Commit b3a502a

Browse files
fix: add config verification
1 parent 0d6b7e3 commit b3a502a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/Audit/AbstractAuditLogFormatter.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ final public function setContext(AuditContext $ctx): void
3535
protected function getUserInfo(): string
3636
{
3737
if (!$this->ctx) {
38+
if (config('opentelemetry.enabled', false) && app()->runningInConsole()) {
39+
return 'Worker Job';
40+
}
3841
return 'Unknown (unknown)';
3942
}
4043

0 commit comments

Comments
 (0)