-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
minimum log_level for GET /../logs
#485
Comments
I guess we can do that, but I'm wondering whether it should be a user-selectable list instead, e.g. if a user uses inspect with the debug level and only wants the debug level + maybe errors. |
For back-end side filtering I would just go for a minimum level, which is the most natural way of working with logs. |
I just fear that this is not fulfilling what some users may want. The user logs (from inspect) usually reside in "info" or "debug" (so low severance) and "error" is high severance. So you can't get the (I assume) most crucial information at once. |
I don't think there is a problem. By default, a The point of this feature request is to have a standardized way to limit log retrieval backend-side for certain situations where there is no explicit interactive user involvement: e.g. in python client, when a batch job failed, we want to immediately show a relevant error message, instead of just "your job failed, check the logs". This should streamline the user support cycle. Unfortunately we have experienced that returning all logs, just to print the error level ones is very inefficient, a pretty heavy (sometimes even unstable) operation and possibly makes the user experience even worse. |
Yes, that's indeed a good usecase. Hearing more opinions would be interesting. @dthiex @SerRichard @clausmichele |
Please review PR #488 |
#431 added option to specify minimum log_level at job submission time.
We are currently also playing with setting a minimum log_level when requesting the logs (e.g.
GET /jobs/{job_id}/logs)
.For example see Open-EO/openeo-python-client#332, where we filter client side to only show error logs, but we've experienced that it would be better to do the filtering already back-end side (for performance reasons).
Can we add an optional
log_level
parameter toGET /jobs/{job_id}/logs
andGET /services/{service_id}/logs
for back-end side log filtering at retrieval time?refs and related issues
The text was updated successfully, but these errors were encountered: