You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a function logError in the LimitsContext that expects as argument an err object with message and code properties.
But, in some cases, like when checking if limits are defined in the configuration (e.g. here), we're passing a text instead. So in such cases the text message is lost in the log and we only have a very generic "msg":"analysis:limits_error" that doesn't provide any useful information.
Since many of the analysis node limits are not defined in the configuration there's a lot of those messages the logs.
We should:
Fix the calls that pass a text, so it is not lost (e.g. context.logError({message: 'Limit for input rows is not defined'});).
Reconsider if the messages about limits not configured are useful, remove them otherwise
The text was updated successfully, but these errors were encountered:
I've opened a PR (#399) about this. So far I've just fixed the calls to logError. About the usefulness of each message, I don't feel familiarized enough with the project to judge that, so all of them seem useful to me 🙂. However, if you think that any of them should be deleted, please add comments to the PR and I'll do it.
We have a function
logError
in theLimitsContext
that expects as argument anerr
object withmessage
andcode
properties.But, in some cases, like when checking if limits are defined in the configuration (e.g. here), we're passing a text instead. So in such cases the text message is lost in the log and we only have a very generic
"msg":"analysis:limits_error"
that doesn't provide any useful information.Since many of the analysis node limits are not defined in the configuration there's a lot of those messages the logs.
We should:
context.logError({message: 'Limit for input rows is not defined'});
).The text was updated successfully, but these errors were encountered: