Bug #36978
journal, unsupported format character 'w'
Début:
16 octobre 2019
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
Par hasard vu dans les logs,
Oct 16 10:20:05 authentic gunicorn[251195]: Traceback (most recent call last): Oct 16 10:20:05 authentic gunicorn[251195]: File "/usr/lib/python2.7/dist-packages/hobo/journal.py", line 166, in emit Oct 16 10:20:05 authentic gunicorn[251195]: msg = self.format(record) Oct 16 10:20:05 authentic gunicorn[251195]: File "/usr/lib/python2.7/logging/__init__.py", line 734, in format Oct 16 10:20:05 authentic gunicorn[251195]: return fmt.format(record) Oct 16 10:20:05 authentic gunicorn[251195]: File "/usr/lib/python2.7/logging/__init__.py", line 465, in format Oct 16 10:20:05 authentic gunicorn[251195]: record.message = record.getMessage() Oct 16 10:20:05 authentic gunicorn[251195]: File "/usr/lib/python2.7/logging/__init__.py", line 329, in getMessage Oct 16 10:20:05 authentic gunicorn[251195]: msg = msg % self.args Oct 16 10:20:05 authentic gunicorn[251195]: ValueError: unsupported format character 'w' (0x77) at index 26 Oct 16 10:20:05 authentic gunicorn[251195]: Logged from file views.py, line 719
Fichiers
Révisions associées
Historique
Mis à jour par Thomas Noël il y a plus de 4 ans
A priori c'est une typo dans Authentic (manque un s après le % dans "user % with token %r")
716 hooks.call_hooks('event', name='password-reset-confirm', user=form.user, token=self.token, 717 form=form) 718 logger.info(u'password reset for user % with token %r', 719 self.user, self.token[:9]) 720 return self.finish()
Mis à jour par Thomas Noël il y a plus de 4 ans
- Projet changé de Hobo à Authentic 2
- Assigné à mis à Thomas Noël
Mis à jour par Thomas Noël il y a plus de 4 ans
- Fichier 0001-views-fix-a-bad-format-in-a-logger.info-string-36978.patch 0001-views-fix-a-bad-format-in-a-logger.info-string-36978.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Frédéric Péters il y a plus de 4 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Thomas Noël il y a plus de 4 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit b65fc220a3667e6dbea280c58db44a31547da595 Author: Thomas NOEL <tnoel@entrouvert.com> Date: Wed Oct 16 10:47:12 2019 +0200 views: fix a bad format in a logger.info string (#36978)
Mis à jour par Frédéric Péters il y a plus de 4 ans
- Statut changé de Résolu (à déployer) à Solution déployée
views: fix a bad format in a logger.info string (#36978)