[solved] new log files in sys_get_temp_dir()

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Moderators, Developers

Post Reply
Author
Message
xdracco
Posts: 21
Joined: Fri Aug 17, 2012 10:19 am
Location: Long Beach, CA

[solved] new log files in sys_get_temp_dir()

#1 Post by xdracco » Sat Jan 05, 2019 10:41 pm

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: Select all

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.
Last edited by xdracco on Mon Jan 07, 2019 12:46 pm, edited 1 time in total.
The answer to life, the universe and everything is int main() {}

User avatar
Osiris
Cacti Pro User
Posts: 835
Joined: Mon Jan 05, 2015 10:10 am

Re: new log files in sys_get_temp_dir()

#2 Post by Osiris » Sun Jan 06, 2019 9:20 pm

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.

xdracco
Posts: 21
Joined: Fri Aug 17, 2012 10:19 am
Location: Long Beach, CA

Re: new log files in sys_get_temp_dir()

#3 Post by xdracco » Mon Jan 07, 2019 12:46 pm

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() {}

Post Reply