Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
ui-middleware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
OX App Suite
Core
ui-middleware
Commits
70967e35
Commit
70967e35
authored
1 year ago
by
david.bauer
Browse files
Options
Downloads
Patches
Plain Diff
Add: Logging Endpoint for identifying code loading issues
parent
e0af9480
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+0
-1
0 additions, 1 deletion
.gitlab-ci.yml
src/routes/log.js
+6
-0
6 additions, 0 deletions
src/routes/log.js
with
6 additions
and
1 deletion
.gitlab-ci.yml
+
0
−
1
View file @
70967e35
include
:
-
project
:
sre/ci-building-blocks
file
:
nodejs.yml
ref
:
3.4.0
unit tests
:
extends
:
.unit tests
...
...
This diff is collapsed.
Click to expand it.
src/routes/log.js
0 → 100644
+
6
−
0
View file @
70967e35
export
default
async
function
logErrors
(
fastify
)
{
fastify
.
post
(
'
/log
'
,
async
(
req
,
reply
)
=>
{
req
.
log
.
info
({
...
req
.
body
,
userAgent
:
req
.
headers
[
'
user-agent
'
]
})
reply
.
send
()
})
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment