|
|
@ -231,7 +231,7 @@ class EEDebugController(CementBaseController): |
|
|
|
def debug_fpm(self): |
|
|
|
"""Start/Stop PHP5-FPM debug""" |
|
|
|
# PHP5-FPM start global debug |
|
|
|
if (self.app.pargs.php == 'on'and not self.app.pargs.site_name): |
|
|
|
if (self.app.pargs.fpm == 'on' and not self.app.pargs.site_name): |
|
|
|
if not EEShellExec.cmd_exec(self, "grep \"log_level = debug\" " |
|
|
|
"/etc/php5/fpm/php-fpm.conf"): |
|
|
|
Log.info(self, "Setting up PHP5-FPM log_level = debug") |
|
|
@ -252,7 +252,7 @@ class EEDebugController(CementBaseController): |
|
|
|
self.msg = self.msg + ['/var/log/php5/fpm.log'] |
|
|
|
|
|
|
|
# PHP5-FPM stop global debug |
|
|
|
elif (self.app.pargs.php == 'on' and not self.app.pargs.site_name): |
|
|
|
elif (self.app.pargs.fpm == 'off' and not self.app.pargs.site_name): |
|
|
|
if EEShellExec.cmd_exec(self, "grep \"log_level = debug\" " |
|
|
|
"/etc/php5/fpm/php-fpm.conf"): |
|
|
|
Log.info(self, "Disabling PHP5-FPM log_level = debug") |
|
|
|