187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
|
# File 'lib/agent/server/am_connector.rb', line 187
def update_config configInfo
existingConfigInfo = @obj.config.getAgentConfigData
sendUpdate = "false"
existingConfigInfo.each do|key,value|
if key != "last.modified.time"
newValue = configInfo[key]
if key == "sql.capture.enabled" || key == "transaction.trace.enabled" || key == "transaction.trace.sql.parametrize"
if newValue
newValue = 1
else
newValue = 0
end
end
if value != newValue
sendUpdate = "true"
end
end
end
if sendUpdate == "true"
@obj.log.info "Action from Server - Agent configuration updated from UI. Going to update the same in apminsight.conf file"
@obj.log.info "config info = #{configInfo}"
@obj.config.update_config configInfo
end
end
|