Projet

Général

Profil

Bug #36978

journal, unsupported format character 'w'

Ajouté par Frédéric Péters il y a plus de 4 ans. Mis à jour il y a plus de 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
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

Révision b65fc220 (diff)
Ajouté par Thomas Noël il y a plus de 4 ans

views: fix a bad format in a logger.info string (#36978)

Historique

#1

Mis à jour par Frédéric Péters il y a plus de 4 ans

  • Tracker changé de Support à Bug
#2

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()
#3

Mis à jour par Thomas Noël il y a plus de 4 ans

  • Projet changé de Hobo à Authentic 2
  • Assigné à mis à Thomas Noël
#4

Mis à jour par Thomas Noël il y a plus de 4 ans

#5

Mis à jour par Frédéric Péters il y a plus de 4 ans

  • Statut changé de Solution proposée à Solution validée
#6

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)

#7

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

Formats disponibles : Atom PDF