Commit Graph

14 Commits

Author SHA1 Message Date
Maximilian Paß
895dd8879f Revert "Debug HTTPLoggingMiddleware latency."
This reverts commit ae86b1c261.
2024-02-06 19:34:45 +00:00
Maximilian Paß
ae86b1c261 Debug HTTPLoggingMiddleware latency. 2024-01-26 22:51:55 +01:00
Maximilian Paß
57590457a8 Add logging filter token
The token is used to filter out request logs when the user agent matches a randomly generated string.
2024-01-24 17:21:00 +01:00
Maximilian Paß
c9922e2539 Decrease Log severity
of failing requests because it's likely that another error with more information has already been reported.
2023-11-30 16:44:22 +01:00
Maximilian Paß
306512bf9c Fix Context Values are not logged.
Only the Sentry hook uses the values of the passed context. Therefore, we removed the values from our log statements when we shifted them from an extra `WithField` call to the context.
We fix this behavior by introducing a Logrus Hook that copies a fixed set of context values to the logging data.
2023-08-21 22:40:37 +02:00
Maximilian Paß
0fd6e42487 Add regression e2e test for incomplete debug message.
See #325.
2023-08-14 11:37:51 +02:00
Maximilian Paß
0c8fa9ccfa Add context to log statements. 2023-04-11 20:45:30 +01:00
Maximilian Paß
669ec039ce Update dependencies 2022-06-07 17:21:05 +02:00
Maximilian Paß
1e59c1146e Fix CodeQL log injection warning
by removing newlines from logged user input.
2022-06-07 17:21:05 +02:00
Maximilian Paß
25f92e5f94 Add environment specific data to the influxdb data. 2022-04-18 13:17:49 +02:00
Maximilian Paß
7c9406cd7a Change response logging message
to allow specific error tracking in sentry. See POSEIDON-F
2021-11-26 21:28:10 +01:00
Maximilian Paß
3ae83217d7 Add Sentry integration 2021-11-25 19:29:33 +01:00
Maximilian Paß
bd80dd729f Add milliseconds to the logging timestamp 2021-10-21 10:34:31 +02:00
sirkrypt0
8b26ecbe5f Restructure project
We previously didn't really had any structure in our project apart
from creating a new folder for each package in our project root.
Now that we have accumulated some packages, we use the well-known
Golang project layout in order to clearly communicate our intent
with packages. See https://github.com/golang-standards/project-layout
2021-07-21 12:55:35 +02:00