-
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
Warnings verbosity #500
Comments
I agree with this, but isnt this going to be print the same number of rows? What about truncating the output and only print the first 10 cases, and then saying "There are 1230 similar ones, omitted for brevity"? |
Same number of rows, but text reduced by like 1/3 or so because it won't print the warning message for each line. I think printing such a sample is also a good idea. Could change behavior to print some / all based on verbosity settings, or save more to a logfile, at some point in the future. |
I explored catching the warnings and basically it will require a huge amount of refactoring, because the warning is written a few methods down from where I could collect the erroneous mappings, and that method is called in dozens of places. in #502 I have
What do you think? |
Wow you got right to this. Yeah I think this seems pretty good! |
Overview
I noticed recently that sometimes warnings are overly verbose. For example, sometimes for a given type of warning, it prints a full warning for each instance of an offending class or mapping, rather than printing some text about the type of warning and then providing a concise list of all the offending cases.
Current behavior
Example
In my instance, this warning repeated 100's of times, each time with a different mapping object, but the same error message. Here's what it looks like with just 3 entries (the latter 2 are fake / just examples).
Suggested behavior
Example
Additional details
Related
The text was updated successfully, but these errors were encountered: