-
Notifications
You must be signed in to change notification settings - Fork 113
Enhance import logging #3279
Copy link
Copy link
Open
Labels
APIchanges involving using the app apichanges involving using the app apiBackendIssue or PR related to the backend codeIssue or PR related to the backend codeFrontendIssue or PR related to the frontend codeIssue or PR related to the frontend codeenhancementNew feature or requestNew feature or request
Description
Activity
Metadata
Metadata
Assignees
Labels
APIchanges involving using the app apichanges involving using the app apiBackendIssue or PR related to the backend codeIssue or PR related to the backend codeFrontendIssue or PR related to the frontend codeIssue or PR related to the frontend codeenhancementNew feature or requestNew feature or request
Is your feature request related to a problem? Please describe.
The logging routines during import are rather basic. Mostly, the user just gets a message that the server could not import a recipe from a remote site. For debugging and user experience, it would be very nice to have a cleaner output.
It might be even thinkable to have a debug output that simplifies debugging the solution on the machine. E.g. an export of the downloaded HTML data and the extracted intermediate steps might be a feasible solution. These could be prepared internally on a temp folder and cleaned after a certain time frame (1 day or so).
Describe the solution you'd like
Clear logging is essential for users.
Debugging might help sort out issues of the import scripts.
Describe alternatives you've considered
Give only access to the information of failure to the admin via logging to the nextcloud.log file. This would reduce the security related considerations a bit.