Welcome Guest Login Register Member List
ExpressionEngine Forums
Advanced Search
Username: Password:
Remember Me? forgot password?
You are here: Forum Home  >  Usage  >  Troubleshooting  >  Thread
   
 
Disable logging?
 
Gobo
Posted: 01 September 2006 01:39 PM   [ Ignore ]  
Newbie
Rank
Total Posts:  6
Joined  2006-09-01

Because I was backing some stuff up, I was looking at sizes of directories and I noticed that The Tracks directory was taking up a whopping 180Mb of space! It turns out that I had a log file of about 175Mb lying around there…

Is there any way that I can disable logging altogether in Tracks? (I’m still using 1.041, since I’m on a single user install…)

Profile
 
myles
Posted: 01 September 2006 02:49 PM   [ Ignore ]   [ # 1 ]  
Newbie
Rank
Total Posts:  6
Joined  2006-06-28

This would be a Ruby on Rails issuse. Have you tried doing a corn job to delete the files everyday?

@daily rm /home/www/gtd/rails/log/*.log

Profile
 
Gobo
Posted: 01 September 2006 03:09 PM   [ Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  6
Joined  2006-09-01

Hmm, that would be a very nasty work-around, which I’m not very enthousiastic about..

But if all else fails, I’d do that.

Profile
 
bsag
Posted: 02 September 2006 03:57 PM   [ Ignore ]   [ # 3 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  217
Joined  2006-03-05

It’s a default Rails thing. First, make sure that you’re using production mode. You should be anyway for normal work, but development mode generates much more verbose logging. Second, you can put this into your config/production.rb file, at the bottom:


RAILS_DEFAULT_LOGGER.level = Logger::FATAL

Then you should only get anything written to the log when the application has a fatal error.

Finally, if you want to clean up the logs periodically, you can either use a cron job as myles suggested, or you could use a rake task. Change to the tracks directory and type:


rake log:clear

Profile
 
   
 
 
‹‹ Displaying tickler items in feeds      Blank iCal Subscriptions... ››

Powered By ExpressionEngine
Template Design By Sonnenvogel.com
Select a theme:

ExpressionEngine Discussion Forum - Version 2.1.2 (20091002)
Script Executed in 0.1011 seconds

Atom Feed
RSS 2.0