-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
[IMP] disable_invalid_filters: log filter probes #373
[IMP] disable_invalid_filters: log filter probes #373
Conversation
openupgradelib/openupgrade.py
Outdated
@@ -2814,6 +2814,13 @@ def format_message(f): | |||
with savepoint(env.cr): | |||
# Strange artifact found in a filter | |||
domain = f.domain.replace("%%", "%") | |||
if verbose: | |||
logger.info( | |||
"Probing filter '%s' on model %s with domain %s", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Probing filter '%s' on model %s with domain %s", | |
"Checking filter '%s' on model %s with domain %s", |
Probing
is not a valid gerund: https://translate.google.com/details?sl=en&tl=es&text=probing&op=translate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
f6e048f
to
7075908
Compare
openupgradelib/openupgrade.py
Outdated
@@ -2814,6 +2814,13 @@ def format_message(f): | |||
with savepoint(env.cr): | |||
# Strange artifact found in a filter | |||
domain = f.domain.replace("%%", "%") | |||
if verbose: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should add the message at the beginning of the loop.
To have a hint on possible bottleneck issues for filters with heavy queries. We can disable it setting the new `verbose` parameter to `False`.
7075908
to
fb69382
Compare
To have a hint on possible bottleneck issues for filters with heavy queries. We can disable it setting the new
verbose
parameter toFalse
.cc @Tecnativa TT46020
check @pedrobaeza