fix logging string formatting

This commit is contained in:
Jan Dittberner 2014-12-25 18:51:14 +01:00
parent 1ba6a2ad9d
commit 1ad42ca4fd

View file

@ -60,7 +60,7 @@ def setup_file_sftp_userdir(username):
stderr=subprocess.STDOUT) stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as exc: except subprocess.CalledProcessError as exc:
_logger.exception( _logger.exception(
'could not create SFTP directory for user {0}: {1}', 'could not create SFTP directory for user %s: %s',
username, exc.output username, exc.output
) )
raise Reject(exc, requeue=False) raise Reject(exc, requeue=False)