-
Notifications
You must be signed in to change notification settings - Fork 17
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
Rename debug to inspect, add implementation guide, other improvements #310
Conversation
don't we already have |
I would also propose to rename the Also something to consider is to give this |
Yikes, very good point! Proposals for another name? |
The parameter names here correspond to the API field names for logs, so I think that's a good reason to make clear which parameter corresponds to which field. We can fine-tune the description though.
What would be a (static?) alternative? Maybe
I don't think it's as important as message, but probably less important than level. Although not sure how often people actually change the level? |
Ok fair enough. The description should indeed make it sound less than a unique id.
I think we're misunderstanding each other here. I meant tot give the argument
I'm also not sure I understand fully your reply.
Not sure, both "log" and "debug" are already fairly overloaded in meaning. |
Done.
Uh, yes, that was a misunderstanding. That's a good idea.
I could see this being useful, e.g. if you want to raise the log level in jobs to not get so much noise but still want to see your log output. It's optional anyway and available in the log entries the API exposes, so have not a big issue in having it.
Another alternative that came to mind is "record", but changed to "inspect" for now to at least resolve the conflict.
Actually, I just checked the API documentation and there the message is required. I guess that was the reason for defaulting to an empty string. Well, ideally we would remove the "message" requirement in the API as it's not very useful to circumvent it with an empty string anyway. |
Well, the |
There's a message and a data property in the logs. You that is a 1:1 mapping between the process and the API, with the exception that if the data is infeasible to dump completely, a summary should be provided as proposed in the implementation guide. So the data doesn't need to be squeezed into a message string, of course. Clients can nicely render machine-readable JSON from the data property, e.g. the dimension overview from vue components if dimensions are included in the data property for a raster cube. The message can contain additional details from the user (or be empty). |
ah ok, I wasn't aware of (or at least didn't remember) this |
As this process is still very debated, it probably helps to demystify some things.
log
. debug was too closely bound to the log levels and as such confusing. log also is more closely bound to the endpoint names and naming in clients.error
does not need to stop execution.