-
Notifications
You must be signed in to change notification settings - Fork 47
Lot of "debugging" errors #55
Comments
This should address #55, because now the spellchecker config is created only if it's missing from the main TinyMCE config.
Hi, This was fixed in 1.7.5? Because I still see all those debug messages. Thanks. |
Bump. EDIT: for now all those info messages disappeared when add LANGUAGES to settings.py, but now there is one only message left to disable:
Sorry to ask it again, is there currently a way to set debugging messages? Thanks. |
I don’t know if these are warnings or logging messages, but there are ways to configure both from your app: |
Right, but I already have a setup for my Project. At least in my case, is everything is working good with TinyMCE lite, would be good to have an option to disable these logs which comes from TinyMCE Lite. |
I am saying that you do have an option! |
Yeah, but I don't want to modify what is set for my current Project (unless there is a way to specify Django logs for a certain app). Thanks anyways. |
Yes, you can modify logging config for a specific logger. |
The log record in question is created only in debug mode: https://github.com/romanvm/django-tinymce4-lite/blob/master/tinymce/widgets.py#L96 so it shouldn't be logged in production. If you are running Django with debug enabled in production, this is your least issue. |
And why you assume that in production I am running it in debug mode? I never mention that, which of course I do not use debug mode in production. |
As you can see in the code, the log record in question is guarded by |
In the latest version the logging logic has been changed and the issue should not happen any more. |
Hi, Fixed in version 1.8.0? Because still:
|
Again, I can only recommend to check your project configuration. The message has DEBUG level and should not appear under normal circumstances. E.g. it does not appear in the test project with |
Hi! I have the same problem - a lot of debugging level log messages in console in any django management command. The reason of the problem is logging.basicConfig() call in views.py and widgets.py modules. Maybe, the call should not be at module level? This is what I found and commented out in version 1.8.0:
|
This is the way finally used to avoid this "non important" debug logs in LOGGING settings (skipped here no necesary settings):
|
Hi,
Is there a way to remove/disable this errors in terninal when runing python manage.py runserver?:
https://pastebin.com/afqdvXXP
I only added English and Spanish dicts in Tinymce settings ('spellchecker_languages': 'English=en_US,Spanish=es').
Thanks.
The text was updated successfully, but these errors were encountered: