[PATCH] BZ853939 specify event source_type to prevent unwanted events from creeping into logs page
Tzu-Mainn Chen
tzumainn at redhat.com
Wed Sep 5 17:56:09 UTC 2012
---
src/app/controllers/logs_controller.rb | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/app/controllers/logs_controller.rb b/src/app/controllers/logs_controller.rb
index 22e6bae..e191cf9 100644
--- a/src/app/controllers/logs_controller.rb
+++ b/src/app/controllers/logs_controller.rb
@@ -127,9 +127,10 @@ class LogsController < ApplicationController
@to_date.to_datetime.end_of_day,
@source_type]
else
- conditions = ["event_time between ? and ?",
+ conditions = ["event_time between ? and ? and source_type in (?)",
@from_date.to_datetime.beginning_of_day,
- @to_date.to_datetime.end_of_day]
+ @to_date.to_datetime.end_of_day,
+ ["Deployment", "Instance"]]
end
@events = Event.unscoped.find(:all,
--
1.7.6.5
More information about the aeolus-devel
mailing list