On 5/30/05, Albert Yi <baniira-s8PdfxpoPdHk1uMJSBkQmQ@public.gmane.org>
wrote:> I''m using ActionWebService to allow users to upload files to my
rails
> app. I do this by encoding to Base64. The problem with this is that
> rails logs the file data so my log file size spirals out of control. Is
> there any way to selectively disable logging when the web api is
> invoked? ActiveRecord::Base.silence doesn''t seem too useful here
as it''s
> only called AFTER the api is invoked.
Hi,
Have you tried disabling logging in #before_invocation and re-enabling
in #after_invocation? The #before_invocation/#after_invocation calls
accept parameters, so you can limit it to the methods you want.
http://api.rubyonrails.com/classes/ActionWebService/Invocation/ClassMethods.html
Leon