Log arguments to AMF read methods.
authorTom Hughes <tom@compton.nu>
Wed, 20 May 2009 13:24:59 +0000 (13:24 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 20 May 2009 13:24:59 +0000 (13:24 +0000)
app/controllers/amf_controller.rb

index 24093cd0907f45d356e6272d0c45b48400e122b4..41f724a34fb2fe11810116a915af44d9f56afefe 100644 (file)
@@ -72,7 +72,7 @@ class AmfController < ApplicationController
         index=AMF.getstring(req)                       #  | get index in response sequence
         bytes=AMF.getlong(req)                         #  | get total size in bytes
         args=AMF.getvalue(req)                         #  | get response (probably an array)
-        logger.info("Executing AMF #{message}:#{index}")
+        logger.info("Executing AMF #{message}(#{args.join(',')}):#{index}")
 
         case message
           when 'getpresets';           results[index]=AMF.putdata(index,getpresets())
@@ -89,7 +89,7 @@ class AmfController < ApplicationController
           when 'getpoi';               results[index]=AMF.putdata(index,getpoi(*args))
         end
       end
-      logger.info("encoding AMF results")
+      logger.info("Encoding AMF results")
       sendresponse(results)
     else
       render :nothing => true, :status => :method_not_allowed
@@ -133,7 +133,7 @@ class AmfController < ApplicationController
           when 'startchangeset';               results[index]=AMF.putdata(index,startchangeset(*args))
         end
       end
-      logger.info("encoding AMF results")
+      logger.info("Encoding AMF results")
       sendresponse(results)
     else
       render :nothing => true, :status => :method_not_allowed