Skip to content

Commit 7f5dd9c

Browse files
author
gau1991
committed
Fixed FPM debug
1 parent a63a7c1 commit 7f5dd9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ee/cli/plugins/debug.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def debug_php(self):
231231
def debug_fpm(self):
232232
"""Start/Stop PHP5-FPM debug"""
233233
# PHP5-FPM start global debug
234-
if (self.app.pargs.php == 'on'and not self.app.pargs.site_name):
234+
if (self.app.pargs.fpm == 'on' and not self.app.pargs.site_name):
235235
if not EEShellExec.cmd_exec(self, "grep \"log_level = debug\" "
236236
"/etc/php5/fpm/php-fpm.conf"):
237237
Log.info(self, "Setting up PHP5-FPM log_level = debug")
@@ -252,7 +252,7 @@ def debug_fpm(self):
252252
self.msg = self.msg + ['/var/log/php5/fpm.log']
253253

254254
# PHP5-FPM stop global debug
255-
elif (self.app.pargs.php == 'on' and not self.app.pargs.site_name):
255+
elif (self.app.pargs.fpm == 'off' and not self.app.pargs.site_name):
256256
if EEShellExec.cmd_exec(self, "grep \"log_level = debug\" "
257257
"/etc/php5/fpm/php-fpm.conf"):
258258
Log.info(self, "Disabling PHP5-FPM log_level = debug")

0 commit comments

Comments
 (0)