File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed
src/ExceptionEnricher/Processor Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 1-
2- name : Continuous Integration
1+ name : GitHub Actions
32
43on :
54 pull_request :
Original file line number Diff line number Diff line change 11# sblum Exception Enricher Bundle
22
3- [ ![ Build Status] ( https://travis-ci.org /sblum/exception-enricher. svg?branch=master )] ( https://travis-ci.org /sblum/exception-enricher )
3+ [ ![ Build Status] ( https://github.com /sblum/exception-enricher/actions/workflows/ci.yml/badge. svg?branch=master )] ( https://github.com /sblum/exception-enricher/actions )
44[ ![ Latest Stable Version] ( https://poser.pugx.org/sblum/exception-enricher/v/stable )] ( https://packagist.org/packages/sblum/exception-enricher )
55[ ![ License] ( https://poser.pugx.org/sblum/exception-enricher/license )] ( https://packagist.org/packages/sblum/exception-enricher )
66
Original file line number Diff line number Diff line change @@ -47,11 +47,11 @@ public function __invoke(array $record): array
4747
4848 if ($ this ->requestStack ->getMainRequest ()) {
4949 $ record ['extra ' ]['request_ip ' ] = $ this ->requestStack ->getMainRequest ()->getClientIp ();
50- }
51- }
5250
53- if ($ this ->tokenStorage && $ this ->tokenStorage ->getToken ()) {
54- $ record ['extra ' ]['username ' ] = $ this ->tokenStorage ->getToken ()->getUserIdentifier ();
51+ if ($ this ->tokenStorage && $ this ->tokenStorage ->getToken ()) {
52+ $ record ['extra ' ]['username ' ] = $ this ->tokenStorage ->getToken ()->getUserIdentifier ();
53+ }
54+ }
5555 }
5656
5757 return $ record ;
You can’t perform that action at this time.
0 commit comments