File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -128,22 +128,7 @@ def process(req)
128
128
doauth = false
129
129
mname << '_noauth'
130
130
end
131
- stats = ActiveRecord ::Base . connection_pool . stat
132
- if File . exist? ( '../scenario_name2.txt' )
133
- name = File . binread ( '../scenario_name2.txt' ) . strip
134
- else
135
- name = 'EMPTY FILE'
136
- end
137
- pool = ActiveRecord ::Base . connection_pool
138
- pool . connections . each do |connection |
139
- Rails . logger . info (
140
- connection . owner . present? ? connection . owner . inspect : "[UNUSED]"
141
- )
142
- $stderr. puts ( connection . owner . present? ? connection . owner . inspect : "[UNUSED]" )
143
- end
144
- $stderr. puts ( "#{ Time . now } - Scenario #{ name } Connection Pool Stats Engine RPC: #{ mname } #{ stats . inspect } " )
145
- Rails . logger . info ( "#{ Time . now } - Scenario #{ name } Connection Pool Stats Engine RPC: #{ mname } #{ stats . inspect } " )
146
- File . write ( "../engine_stats.txt" , "Connection Pool Stats Engine RPC: #{ mname } #{ stats . inspect } \n " , mode : "wb" )
131
+
147
132
unless self . handlers [ group ] . respond_to? ( mname )
148
133
raise ArgumentError , "Unknown API Call: '#{ mname . inspect } '"
149
134
end
You can’t perform that action at this time.
0 commit comments