CodeIgniter Forums
log_threshold more than 0 breaks site - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: log_threshold more than 0 breaks site (/showthread.php?tid=68158)



log_threshold more than 0 breaks site - iampuping - 06-02-2017

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';


RE: log_threshold more than 0 breaks site - Paradinight - 06-02-2017

(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


RE: log_threshold more than 0 breaks site - iampuping - 06-03-2017

(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.


RE: log_threshold more than 0 breaks site - Paradinight - 06-04-2017

(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?