Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Wed Feb 20, 2019 10:51 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [solved] new log files in sys_get_temp_dir()
PostPosted: Sat Jan 05, 2019 10:41 pm 
Offline

Joined: Fri Aug 17, 2012 10:19 am
Posts: 21
Location: Long Beach, CA
Updated to 1.2 and I noticed two new log files being written to /tmp, the return value of sys_get_temp_dir(). The files are cacti-sql.log and cacti-option.log both located in the defined /tmp directory.

I had to comment out the few relevant lines in lib/database.php and lib/functions.php to get that logging to stop because it was generating large files in a short period of time.

I set the following constants to true thinking they'd stop the logging... nope.
Code:
define('DEBUG_READ_CONFIG_OPTION', TRUE);
define('DEBUG_READ_CONFIG_OPTION_DB_OPEN', TRUE);

Are these two logs hard coded for a reason or am I completely missing how to configure these two log files?

Thanks.

_________________
The answer to life, the universe and everything is int main() {}


Last edited by xdracco on Mon Jan 07, 2019 12:46 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: new log files in sys_get_temp_dir()
PostPosted: Sun Jan 06, 2019 9:20 pm 
Offline
Cacti Pro User
User avatar

Joined: Mon Jan 05, 2015 10:10 am
Posts: 744
You should comment out those two lines in the config.php. They are only to be un-commented for debugging.

_________________
Before history, there was a paradise, now dust.


Top
 Profile  
 
 Post subject: Re: new log files in sys_get_temp_dir()
PostPosted: Mon Jan 07, 2019 12:46 pm 
Offline

Joined: Fri Aug 17, 2012 10:19 am
Posts: 21
Location: Long Beach, CA
i apologize for having made this thread. the answer was right there in front of me. thanks for the reply

_________________
The answer to life, the universe and everything is int main() {}


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 7 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

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group