Skip to content

Commit 02dd6ff

Browse files
authored
Merge pull request #8731 from ProcessMaker/bugfix/FOUR-29304
FOUR-29304 Fix logging when name attribute is unknown
2 parents 6f3a606 + fec0898 commit 02dd6ff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ProcessMaker/Models/EnvironmentVariable.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ public function getValueAttribute()
6060
} catch (Exception $e) {
6161
Log::error(
6262
'Can not decrypt environment variable: ' .
63-
$this->attributes['name'] .
63+
($this->attributes['name'] ?? 'unknown') .
6464
"\n" . $e->getMessage() .
65-
"\n" . $e->getTraceAsString()
65+
"\n" . $e->getTraceAsString(),
66+
['attributes' => $this->attributes]
6667
);
6768

6869
return null;

0 commit comments

Comments
 (0)