From 5ef5392a33af8a067907381328c0d0476cde72fa Mon Sep 17 00:00:00 2001 From: gau1991 Date: Fri, 16 Jan 2015 13:14:40 +0530 Subject: [PATCH] Fixed minor bugs --- config/ee.conf | 2 +- ee/cli/plugins/site_functions.py | 2 +- ee/core/logging.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/ee.conf b/config/ee.conf index ce68b3e5..d3d8aafb 100644 --- a/config/ee.conf +++ b/config/ee.conf @@ -27,7 +27,7 @@ file = /var/log/ee/ee.log level = debug ### Whether or not to log to console -to_console = false +to_console = true ### Whether or not to rotate the log file when it reaches `max_bytes` rotate = true diff --git a/ee/cli/plugins/site_functions.py b/ee/cli/plugins/site_functions.py index 1a5c9ccc..bde91af8 100644 --- a/ee/cli/plugins/site_functions.py +++ b/ee/cli/plugins/site_functions.py @@ -141,7 +141,7 @@ def SetupWordpress(self, data): Log.info(self, "Downloading Wordpress...", end='') EEFileUtils.chdir(self, '{0}/htdocs/'.format(ee_site_webroot)) EEShellExec.cmd_exec(self, "wp --allow-root core download") - Log.info("[Done]") + Log.info(self, "[Done]") if not (data['ee_db_name'] and data['ee_db_user'] and data['ee_db_pass']): data = SetupDatabase(self, data) diff --git a/ee/core/logging.py b/ee/core/logging.py index 5feb15e1..56847a38 100644 --- a/ee/core/logging.py +++ b/ee/core/logging.py @@ -11,6 +11,7 @@ class Log: UNDERLINE = '\033[4m' def error(self, msg): + print(Log.FAIL + msg + Log.ENDC) self.app.log.error(Log.FAIL + msg + Log.ENDC) self.app.close(1)