Project

General

Profile

Evolution #6124

horodatage des logs

Added by Joël Cuissinat over 6 years ago. Updated over 6 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Category:
-
Start date:
09/27/2013
Due date:
09/27/2013
% Done:

100%

Estimated time:
2.00 h
Spent time:
Distribution:
EOLE 2.4

Description

Ce serait bien que les logs (au minimum : /var/log/eoleflask/eolegenconfig.log) soient horodatés car quand l'application merdouille, on n'est jamais certain que le traceback présent dans le fichier de log a bien un rapport avec les manipulations réalisées :o

Associated revisions

Revision 5b69b2e3 (diff)
Added by Daniel Dehennin over 6 years ago

Les logs des applications ne sont pas horodatées

  • eoleflask/loader.py (load_app): Définir le formattage des logs des
    applications.

Fixes: #6124 @30m

History

#1 Updated by Daniel Dehennin over 6 years ago

  • Due date set to 09/27/2013
  • Status changed from Nouveau to Accepté
  • Assigned To changed from Laurent Flori to Daniel Dehennin
  • Start date set to 09/27/2013

#2 Updated by Daniel Dehennin over 6 years ago

  • Status changed from Accepté to Résolu
  • % Done changed from 0 to 100

#3 Updated by Benjamin Bohard over 6 years ago

  • Status changed from Résolu to Fermé

gen_config horodate bien les messages d'erreurs :

2013-10-04 16:30:14,117: eolegenconfig - invalid value for option nom_academie: invalid domainname
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/eolegenconfig/views.py", line 110, in update_variable
    value)
  File "/usr/lib/python2.7/dist-packages/eolegenconfig/lib.py", line 360, in set_value
    setattr(config, path, value)
  File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 181, in __setattr__
    self._setattr(name, value)
  File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 186, in _setattr
    return homeconfig.__setattr__(name, value)
  File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 181, in __setattr__
    self._setattr(name, value)
  File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 196, in _setattr
    force_permissive=force_permissive)
  File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 255, in setitem
    'validator' in self.context().cfgimpl_get_settings())
  File "/usr/lib/python2.7/dist-packages/tiramisu/option.py", line 451, in impl_validate
    do_validation(value, force_index)
  File "/usr/lib/python2.7/dist-packages/tiramisu/option.py", line 428, in do_validation
    '').format(self._name, err))
ValueError: invalid value for option nom_academie: invalid domainname

Testé avec le paquet 2.4.0-14

Also available in: Atom PDF