Skip to content

Commit 7d59b24

Browse files
committed
add project code to detault log record
1 parent 6a9fa6a commit 7d59b24

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Service/BugCatcher.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public function __construct(
2323
) {}
2424

2525
public function log(array $data): void {
26+
if (!array_key_exists("projectCode", $data)) {
27+
$data["projectCode"] = $this->project;
28+
}
2629
$this->writer->write($data);
2730
}
2831

0 commit comments

Comments
 (0)