Store module_run events as a hash

git-svn-id: file:///home/svn/framework3/trunk@8465 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2010-02-12 17:37:20 +00:00
parent 537007c9cb
commit f3edce86a1
1 changed files with 7 additions and 1 deletions

View File

@ -203,9 +203,15 @@ class FrameworkEventSubscriber
include GeneralEventSubscriber
def on_module_run(instance)
if framework.db.active
datastore_hash = {}
instance.datastore.keys.each do |k|
datastore_hash[k.to_s] = instance.datastore[k].to_s
end
info = {}
info[:module_name] = instance.refname
info[:datastore] = instance.datastore
info[:datastore] = datastore_hash
report_event(:name => "module_run", :info => info)
end
end