Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

name: Continuous Integration
name: GitHub Actions

on:
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# sblum Exception Enricher Bundle

[![Build Status](https://travis-ci.org/sblum/exception-enricher.svg?branch=master)](https://travis-ci.org/sblum/exception-enricher)
[![Build Status](https://github.com/sblum/exception-enricher/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/sblum/exception-enricher/actions)
[![Latest Stable Version](https://poser.pugx.org/sblum/exception-enricher/v/stable)](https://packagist.org/packages/sblum/exception-enricher)
[![License](https://poser.pugx.org/sblum/exception-enricher/license)](https://packagist.org/packages/sblum/exception-enricher)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ public function __invoke(array $record): array

if ($this->requestStack->getMainRequest()) {
$record['extra']['request_ip'] = $this->requestStack->getMainRequest()->getClientIp();
}
}

if ($this->tokenStorage && $this->tokenStorage->getToken()) {
$record['extra']['username'] = $this->tokenStorage->getToken()->getUserIdentifier();
if ($this->tokenStorage && $this->tokenStorage->getToken()) {
$record['extra']['username'] = $this->tokenStorage->getToken()->getUserIdentifier();
}
}
}

return $record;
Expand Down