Browse Source

Fixed minor bugs

bugfixes
gau1991 10 years ago
parent
commit
5ef5392a33
  1. 2
      config/ee.conf
  2. 2
      ee/cli/plugins/site_functions.py
  3. 1
      ee/core/logging.py

2
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

2
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)

1
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)

Loading…
Cancel
Save