Fix the folder creation for roster changes

This commit is contained in:
mathieui 2013-08-06 19:07:44 +02:00
parent e40a3d72f5
commit 3e7353758e

View file

@ -231,6 +231,7 @@ class Logger(object):
""" """
if config.get_by_tabname('use_log', 'false', jid) != 'true': if config.get_by_tabname('use_log', 'false', jid) != 'true':
return True return True
self.check_and_create_log_dir('', open_fd=False)
if not self.roster_logfile: if not self.roster_logfile:
try: try:
self.roster_logfile = open(os.path.join(log_dir, 'roster.log'), 'a') self.roster_logfile = open(os.path.join(log_dir, 'roster.log'), 'a')