Skip to content
This repository has been archived by the owner on Jun 8, 2020. It is now read-only.

Added debug mode to all resources. #35

Merged
merged 1 commit into from May 11, 2020
Merged

Added debug mode to all resources. #35

merged 1 commit into from May 11, 2020

Conversation

AlexFalappa
Copy link
Contributor

When debugMode POST parameter is set to true (default false) a
custom appender is temporarily added to the root logger to
capture all the log events raised while serving the request.
The resulting capture is then returned in a JSON field of the response.

Changed the logging library from slf4j-simple to logback.

The factory of the JSON responses now writes the field in a fixed order.

Added unit tests of the feature.

Modified the web interface to ask for debug mode and show resulting
logs.

When debugMode POST parameter is set to true (default false) a
custom appender is temporarily added to the root logger to
capture all the log events raised while serving the request.
The resulting capture is then returned in a JSON field of the response.

Changed the logging library from slf4j-simple to logback.

The factory of the JSON responses now writes the field in a fixed order.

Added unit tests of the feature.

Modified the web interface to ask for debug mode and show resulting
logs.
@Ostico Ostico merged commit 351a7d8 into matecat:dev May 11, 2020
@AlexFalappa AlexFalappa deleted the debug-mode branch May 11, 2020 09:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants