Apache error logs contains non-error messages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Won't Fix
|
Low
|
Unassigned |
Bug Description
In the file /var/log/
[Fri Apr 17 14:49:32.604840 2015] [:error] [pid 28933:tid 140515448411904] Login successful for user "admin".
[Fri Apr 17 13:04:25.892490 2015] [:error] [pid 28933:tid 140515448411904] Logging out user "admin".
[Fri Apr 17 06:08:22.662311 2015] [:error] [pid 28933:tid 140515414841088] Creating user with name "demo"
[Fri Apr 17 14:50:51.395871 2015] [:error] [pid 28933:tid 140515414841088] Project switch successful for user "admin".
[Thu Apr 16 08:40:23.971582 2015] [:error] [pid 28933:tid 140515473590016] Deleted token 9295d3bcfb74cda
All these messages are logged with class 'ERROR'. As these messages are success messages they must be of type 'INFO'
To reproduce the bug - Login to the dashboard and then check the horizon.error.log, You'll find the login success message in the log with class [:error]
Changed in horizon: | |
assignee: | nobody → Kenjiro Kosaka (k-kosaka) |
Changed in horizon: | |
assignee: | Kenjiro Kosaka (k-kosaka) → nobody |
Changed in horizon: | |
assignee: | nobody → Shashi (shashi-kant) |
assignee: | Shashi (shashi-kant) → nobody |
Aakash, AFAIK that's the inevitable behavior of Django handler = 'console', every logging message sent there receives an 'error' tag in Apache logs. Two solutions I'm aware of are either send messages to File-based handler, or to Syslog-based handler.