Browse Source

Now EasyEngine will not enable debug for remote MySQL

bugfixes
gau1991 10 years ago
parent
commit
2f6b0c65d8
  1. 23
      ee/cli/plugins/debug.py

23
ee/cli/plugins/debug.py

@ -445,19 +445,19 @@ class EEDebugController(CementBaseController):
and (not self.app.pargs.fpm) and (not self.app.pargs.mysql)
and (not self.app.pargs.wp) and (not self.app.pargs.rewrite)
and (not self.app.pargs.site_name)):
self.debug_nginx()
self.debug_php()
self.debug_fpm()
self.debug_mysql()
self.debug_rewrite()
self.app.pargs.nginx = True
self.app.pargs.php = True
self.app.pargs.fpm = True
self.app.pargs.mysql = True
self.app.pargs.rewrite = True
if ((not self.app.pargs.nginx) and (not self.app.pargs.php)
and (not self.app.pargs.fpm) and (not self.app.pargs.mysql)
and (not self.app.pargs.wp) and (not self.app.pargs.rewrite)
and self.app.pargs.site_name):
self.debug_nginx()
self.debug_wp()
self.debug_rewrite()
self.app.pargs.nginx = True
self.app.pargs.wp = True
self.app.pargs.rewrite = True
if self.app.pargs.nginx:
self.debug_nginx()
@ -466,7 +466,12 @@ class EEDebugController(CementBaseController):
if self.app.pargs.fpm:
self.debug_fpm()
if self.app.pargs.mysql:
self.debug_mysql()
# MySQL debug will not work for remote MySQL
if EEVariables.ee_mysql_host is "localhost":
self.debug_mysql()
else:
Log.warn(self, "Remote MySQL found, EasyEngine will not "
"enable remote debug")
if self.app.pargs.wp:
self.debug_wp()
if self.app.pargs.rewrite:

Loading…
Cancel
Save