Disable ActiveRecord "password" logging in Rails3

  • Tannu4u
  • Proficient
  • Proficient
  • User avatar
  • Joined: Apr 29, 2004
  • Posts: 480
  • Loc: India
  • Status: Offline

Post April 19th, 2011, 5:05 am

Hi All,
I want to remove all the passwords in the SQL query from the Rails log. Please let me know what are the different ways to do this and what is the most efficient way of doing this.

Thanks in advance.
Amit
My Blog http://www.amityadav.name
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post April 19th, 2011, 5:05 am

  • Zealous
  • Guru
  • Guru
  • User avatar
  • Joined: Apr 15, 2011
  • Posts: 1195
  • Loc: Sydney
  • Status: Offline

Post April 19th, 2011, 6:43 am

well if it is using a sql database just send a query to clear all password entries.
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Joined: May 22, 2004
  • Posts: 3415
  • Loc: Richland, WA
  • Status: Offline

Post April 19th, 2011, 8:41 am

Do you want to disable all query logging or just make sure passwords/hashes don't show up in the file? When you go into production mode you will not see any query logs.
#define NULL (::rand() % 2)
  • Tannu4u
  • Proficient
  • Proficient
  • User avatar
  • Joined: Apr 29, 2004
  • Posts: 480
  • Loc: India
  • Status: Offline

Post April 19th, 2011, 9:33 am

I would like the SQL queries to be logged but do not want the passwords to be shown in the logs.
Amit
My Blog http://www.amityadav.name

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 282 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.