Skip to content

Commit 02f3b72

Browse files
authored
Fix: add time to error screen. (#1920)
* Fix: add time to error screen. Its hard to find errors in the logs without a timestamp as we dont know when the error occured. This is something we want to help the support department. Therefore, the time the screen appeard should have a iso timestamp. * Make sure there are only 2 cols
1 parent db69a4e commit 02f3b72

5 files changed

Lines changed: 27 additions & 18 deletions

File tree

languages/messages.en.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@
5555
'ipAddress' => 'IP',
5656
'statusCode' => 'Status Code',
5757
'artCode' => 'EC',
58+
'datetime' => 'Time',
59+
'requestUrl' => 'Request URL',
5860
'statusMessage' => 'Status Message',
5961
'attributeName' => 'Attribute Name',
6062
'attributeValue' => 'Attribute Value',

languages/messages.nl.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@
5555
'ipAddress' => 'IP',
5656
'statusCode' => 'Statuscode',
5757
'artCode' => 'EC',
58+
'datetime' => 'Tijd',
59+
'requestUrl' => 'Aanvraag-URL',
5860
'statusMessage' => 'Statusbericht',
5961
'attributeName' => 'Attribuutnaam',
6062
'attributeValue' => 'Attribuutwaarde',

library/EngineBlock/ApplicationSingleton.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,11 @@ public function collectFeedbackInfo(Throwable $exception)
257257
$logRequestId = $logRequestId->get();
258258
}
259259

260+
$request = $this->getDiContainer()->getSymfonyRequest();
261+
260262
$feedbackInfo = array();
263+
$feedbackInfo['datetime'] = (new DateTime())->format(DateTimeInterface::ATOM);
264+
$feedbackInfo['requestUrl'] = sprintf('%s%s', $request->getSchemeAndHttpHost(), $request->getPathInfo());
261265
$feedbackInfo['requestId'] = $logRequestId;
262266
$feedbackInfo['ipAddress'] = $this->getClientIpAddress();
263267
$feedbackInfo['artCode'] = Art::forException($exception);

theme/base/stylesheets/components/old-not-converted/error-page/error-details.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
display: grid;
2323
grid-auto-flow: row dense;
2424
grid-gap: 0.5em;
25-
grid-template-columns: repeat(3, 1fr);
25+
grid-template-columns: repeat(2, 1fr);
2626

2727
// For IE 10 and 11, we can not use grid-auto-flow, and getting good results otherwise is not feasible
2828
@media all and (-ms-high-contrast: none) {

theme/base/stylesheets/components/old-not-converted/error-page/feedback-info.scss

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,25 @@
2525
font-weight: bold;
2626
}
2727

28-
&--identityprovider,
29-
&--idp-hash,
30-
&--serviceprovider,
31-
&--serviceprovidername,
32-
&--proxyserviceprovider {
33-
@include breakpoints.screen('tabletAndBigger') {
34-
grid-column-end: span 2;
35-
order: -1;
36-
}
37-
}
28+
@include breakpoints.screen('tabletAndBigger') {
29+
&--identityprovider { order: 1; }
30+
&--artcode { order: 2; }
31+
&--serviceprovider { order: 3; }
32+
&--ipaddress { order: 4; }
33+
&--serviceprovidername { order: 5; }
34+
&--requestid { order: 6; }
35+
&--requesturl { order: 7; }
36+
&--datetime { order: 8; }
3837

39-
&--destination,
40-
&--entityid,
41-
&--statuscode,
42-
&--statusmessage {
43-
@include breakpoints.screen('tabletAndBigger') {
44-
grid-column-end: span 3;
45-
order: -1;
38+
&--identityprovidername,
39+
&--idp-hash,
40+
&--proxyserviceprovider,
41+
&--destination,
42+
&--entityid,
43+
&--statuscode,
44+
&--statusmessage {
45+
grid-column-end: span 2;
46+
order: 9;
4647
}
4748
}
4849
}

0 commit comments

Comments
 (0)