-
Notifications
You must be signed in to change notification settings - Fork 43
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
Excessive log after installation and deinstallation. Production.log is flooded by time_logger #43
Comments
Hi, i have de same problem..¿any idea? |
I made config.log_level = :warn in additional_environment.rb and restarted redmine. |
Same result.. ActionController::RoutingError (No route matches [GET] "/time_loggers/render_menu"): |
I've tried to reproduce this an I can't but here's a couple of things you can do. Did you remove the directory? ../plugins/time_logger It that doesn't fix it If it exists delete it Restart Web server and check again. |
Hi! Having such issue too. Furthermore, after re-installing the plugin log is flooding with succesful "render_menu" gets every moment, wich is not good too. After some digging it appears that apache access_log is flooding with "GET /time_loggers/render_menu" from several IP's constantly. Seems like a problem on a client side. Can't say if it's bacause of open tab in browser on client side or some other issue. |
I finally have been able to reproduce the issue. I'll let you all know when I have an update. |
Hi, I'm also getting this log messages... and when it happens the "play, pause and stop" buttons don't appear... if I can help with something, please let me know |
I just performed some investigations and think that the main issue is using setInterval() for updateTimeLoggerMenu which gets data from server. It causes constant GET requests even if user doesn't see timer (in a foreground browser tab left overnight, just for example). If we have, say, 20 users, they have 5 tabs open with issues, its like a 100 useless additional requests per minute. I found some examples to get "Tab is visible" property (see "Using the PageVisibility API" topic on html5rocks) and managed to apply them to logger. The main idia is to setIntervar when tab is visible and clear it otherwise. Code looks like this:
Working well for me. It would be great if you'll review it and implement it in your plugin. Please notice that HTML5 must be supported to get it working, and if not, timer won't refresh (in my case i just don't care, but you can add "else setInterval(updateTimeLoggerMenu, 60000);" to "if (visProp)" just for compatibility). |
No results removing ../plugins/time_logger and delete from schema_migrations where version like "%time_logger%" ActionController::RoutingError (No route matches [GET] "/time_loggers/render_menu"): |
ok I've figured this out!! I'm now using a real ide so tracing this was pretty easy. The first issue is when uninstalling the plugin the public_assets do not get removed. Make sure to delete the plugin directory ../plugins/time_logger danaivehr I like your idea could you please share the file or clone my project so I can give you credit for helping fixing the issue. |
@speedy32129 hello there after years! =) Here is the app/views/time_loggers/_update_menu.html.erb file with that changes from #43 (comment)
|
Since I installed plugin it constantly writes to log few records per one minutes even in the night when nobody works:
So I uninstalled plugin but somehow (maybe because of cookies) now there are massive flood with errors:
The text was updated successfully, but these errors were encountered: