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
Use logging for apphook reload #5448
Comments
Was just about to open a ticket for this. I agree it should use logging as well, but I'd also like to improve what is logged so it's as useful as possible. For instance, it's very unclear why I see this kind of output or what I'm supposed to do with this information:
Or:
|
In the hopes someone can tackle this, here's the explanation: When an apphook is attached to a page, if the project has the Without the Example, user attaches the blog apphook to a page called blog. If If To manage this, there's a global revision and local revision records. The first message:
Tells that a new local revision is being created because a change has been detected and so url conf will be reloaded. After the url conf module is reloaded, it's necessary to trigger a The second message:
Simply informs that we've tried to reverse the |
I have the same "problem"... """ |
This message is very annoying... please hide it soon!! :( |
Agreed, stuff like this should be in the debug log, info at worst |
I came across this as the message is really confusing, I'm working with a codebase that has some strange corners already and the message coming from djangocms itself is the last thing I expected. |
PR above removes the print statements. |
The following PR will fix this issue. |
Looks like the only issue it has is a merge issue with the ChangeLog. |
@stuaxo fixed, thanks for reporting |
Thanks all. |
There are some places in the apphooks reload module that use print statements instead of logging.
https://github.com/divio/django-cms/blob/develop/cms/utils/apphook_reload.py#L96
These should use logging instead.
Related to #5084
The text was updated successfully, but these errors were encountered: