Do some default encoding on start. fix #520

This commit is contained in:
Ruud
2012-07-01 11:30:47 +02:00
parent 4a3d481e16
commit b7f1d28347
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ class CPLog(object):
else:
msg = msg % ss(replace_tuple)
except:
self.error('Failed encoding stuff to log: %s' % traceback.format_exc())
self.logger.error(u'Failed encoding stuff to log: %s' % traceback.format_exc())
if not Env.get('dev'):
+1 -1
View File
@@ -11,7 +11,7 @@ class Env(object):
_appname = 'CouchPotato'
''' Environment variables '''
_encoding = ''
_encoding = 'UTF-8'
_debug = False
_dev = False
_settings = Settings()