lib/sloe/common.rb in sloe-0.7.0 vs lib/sloe/common.rb in sloe-0.7.2
- old
+ new
@@ -71,10 +71,9 @@
end
def method_missing( method, params = nil, attrs = nil )
rpc = Netconf::RPC::Builder.send( method, params, attrs )
if @logging
- # log_attrs = attrs[:format] = 'text' ? attrs : {:format => 'text'}
log_attrs = attrs ? attrs : {}
log_attrs[:format] = 'text'
Dir.mkdir @logging[:path]
File.open("#{@logging[:path]}/#{@logging[:file]}", "w") { |file|
file.write rpc