Project

General

Profile

Tâche #19502

Scénario #19341: eole-schedule doit avoir des logs

Vérifier la gestion des logs dans eole-schedule

Added by Scrum Master over 6 years ago. Updated over 6 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
03/06/2017
Due date:
% Done:

100%

Estimated time:
6.00 h
Spent time:
Remaining (hours):
0.0

Description

Et voir pourquoi le comportement a changé.

Associated revisions

Revision f14fe9f7 (diff)
Added by Benjamin Bohard over 6 years ago

Utiliser le socket syslog.socket géré par systemd pour le module python logging

Ref #19502

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

Use systemd-journald socket for syslog logging

This permit to have message in both “journactl” and “rsyslog”.

Ref: #19502

History

#1 Updated by Benjamin Bohard over 6 years ago

  • Status changed from Nouveau to En cours

#2 Updated by Benjamin Bohard over 6 years ago

  • Assigned To set to Benjamin Bohard

#3 Updated by Benjamin Bohard over 6 years ago

  • Remaining (hours) changed from 6.0 to 4.0

La configuration pour le Handler syslog (pyeole/log.py) est chargée avec le dictionnaire suivant :

u'syslog':
                  {u'class': u'logging.handlers.SysLogHandler',
                   'level': u'DEBUG', # limitted by level argument
                   u'formatter': u'syslog'}

Par défaut, le Handler utilise donc une connexion udp sur le port 514 en local.
Remplacer la configuration par :
u'syslog':
                  {u'class': u'logging.handlers.SysLogHandler',
                   'level': u'DEBUG', # limitted by level argument
                   u'formatter': u'syslog',
                   u'address': u'/run/systemd/journal/syslog'}

permet d’avoir des logs.

A priori, le changement de comportement vient donc du passage à systemd.

#4 Updated by Benjamin Bohard over 6 years ago

  • Remaining (hours) changed from 4.0 to 3.0

La seule autre occurence de logger utilisant syslog se trouve dans creole.fonctionseole et est utilisée dans Zlog.py, dans zephir-client. La fonction creole.fonctionseole.log prévoit un contournement pour le cas où le Handler syslog ne serait pas utilisable.

#5 Updated by Benjamin Bohard over 6 years ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100
  • Remaining (hours) changed from 3.0 to 0.5

Pour vérifier, il est possible de lancer /usr/share/eole/schedule/schedule cron à la main

#6 Updated by Laurent Flori over 6 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 0.5 to 0.0

#7 Updated by Daniel Dehennin over 6 years ago

  • Status changed from Fermé to En cours

#8 Updated by Scrum Master over 6 years ago

  • Status changed from En cours to Résolu

#9 Updated by Joël Cuissinat over 6 years ago

Test OK

#10 Updated by Joël Cuissinat over 6 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF