From 09b82bbc284e31950938d083f7e0f86a97f9f8d1 Mon Sep 17 00:00:00 2001 From: gau1991 Date: Wed, 15 Apr 2015 13:54:03 +0530 Subject: [PATCH] Fixed logic of ee log for non wordpress sites --- ee/cli/plugins/log.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ee/cli/plugins/log.py b/ee/cli/plugins/log.py index 6f976d7e..fbaffd94 100644 --- a/ee/cli/plugins/log.py +++ b/ee/cli/plugins/log.py @@ -122,7 +122,7 @@ class EELogShowController(CementBaseController): .format(EEVariables.ee_webroot, self.app.pargs.site_name)] if self.app.pargs.wp: - if not os.path.isdir('{0}/htdocs/wp-content'.format(webroot)): + if os.path.isdir('{0}/htdocs/wp-content'.format(webroot)): if not os.path.isfile('{0}/logs/debug.log' .format(webroot)): if not os.path.isfile('{0}/htdocs/wp-content/debug.log' @@ -261,7 +261,7 @@ class EELogResetController(CementBaseController): .format(EEVariables.ee_webroot, self.app.pargs.site_name)] if self.app.pargs.wp: - if not os.path.isdir('{0}/htdocs/wp-content'.format(webroot)): + if os.path.isdir('{0}/htdocs/wp-content'.format(webroot)): if not os.path.isfile('{0}/logs/debug.log' .format(webroot)): if not os.path.isfile('{0}/htdocs/wp-content/debug.log' @@ -390,7 +390,7 @@ class EELogGzipController(CementBaseController): .format(EEVariables.ee_webroot, self.app.pargs.site_name)] if self.app.pargs.wp: - if not os.path.isdir('{0}/htdocs/wp-content'.format(webroot)): + if os.path.isdir('{0}/htdocs/wp-content'.format(webroot)): if not os.path.isfile('{0}/logs/debug.log' .format(webroot)): if not os.path.isfile('{0}/htdocs/wp-content/debug.log' @@ -526,7 +526,7 @@ class EELogMailController(CementBaseController): .format(EEVariables.ee_webroot, self.app.pargs.site_name)] if self.app.pargs.wp: - if not os.path.isdir('{0}/htdocs/wp-content'.format(webroot)): + if os.path.isdir('{0}/htdocs/wp-content'.format(webroot)): if not os.path.isfile('{0}/logs/debug.log' .format(webroot)): if not os.path.isfile('{0}/htdocs/wp-content/debug.log'