Welcome Guest, Not a member yet? Register   Sign In
log_threshold more than 0 breaks site
#1

I want to use log_message() to output data into my log files, but as soon as I edit config.php and set $config['log_threshold'] to anything other than 0, my site starts throw 504 timeout errors. I have the logs directory chmod 777 (its just a dev site) and I left the path empty in the config file. 

Any ideas? Current version of CI, Centos 7, PHP 7. 

$config['log_threshold'] = 2;|
$config['log_path'] = '';
$config['log_file_extension'] = '';
$config['log_file_permissions'] = 0644;
$config['log_date_format'] = 'Y-m-d H:iConfused';
Reply
#2

(06-02-2017, 05:22 PM)iampuping Wrote: I want to use log_message() to output data into my log files, but as soon as I edit config.php and set $config['log_threshold'] to anything other than 0, my site starts throw 504 timeout errors. I have the logs directory chmod 777 (its just a dev site) and I left the path empty in the config file. 

Any ideas? Current version of CI, Centos 7, PHP 7. 

$config['log_threshold'] = 2;|
$config['log_path'] = '';
$config['log_file_extension'] = '';
$config['log_file_permissions'] = 0644;
$config['log_date_format'] = 'Y-m-d H:iConfused';

$config['log_threshold'] = 2;| <- remove the pipe
Reply
#3

(06-02-2017, 11:10 PM)Paradinight Wrote: $config['log_threshold'] = 2;| <- remove the pipe


That's not in my actual file, just some weird relic from posting it here.
Reply
#4

(06-03-2017, 02:27 PM)iampuping Wrote:
(06-02-2017, 11:10 PM)Paradinight Wrote: $config['log_threshold'] = 2;| <- remove the pipe


That's not in my actual file, just some weird relic from posting it here.

Have you checked the error log file from the server?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB