diff rhodecode/model/forms.py @ 1976:a76e9bacbedc beta

garden - unified logging formatting to use only %
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 02 Feb 2012 00:31:00 +0200
parents 9bbde54232dc
children 87f0800abc7b
line wrap: on
line diff
--- a/rhodecode/model/forms.py	Sun Feb 05 19:10:08 2012 +0200
+++ b/rhodecode/model/forms.py	Thu Feb 02 00:31:00 2012 +0200
@@ -248,7 +248,7 @@
             return value
         else:
             if user and user.active is False:
-                log.warning('user %s is disabled', username)
+                log.warning('user %s is disabled' % username)
                 raise formencode.Invalid(
                     self.message('disabled_account',
                     state=State_obj),
@@ -256,7 +256,7 @@
                     error_dict=self.e_dict_disable
                 )
             else:
-                log.warning('user %s not authenticated', username)
+                log.warning('user %s not authenticated' % username)
                 raise formencode.Invalid(
                     self.message('invalid_password',
                     state=State_obj), value, state,