Projet

Général

Profil

Bug #6164

Log level handling in sync-metadata.py

Ajouté par CRIMA CRIMA il y a plus de 9 ans. Mis à jour il y a environ 9 ans.

Statut:
Rejeté
Priorité:
Bas
Assigné à:
-
Catégorie:
SP (pffedportal)
Version cible:
-
Début:
17 décembre 2014
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:

Description

Hi,

When I was trying to troubleshot a problem with Univnautes's SP metadata refereshing, I hit something that seems unintentionnal about log verbosity.

I ran manually this sequence in a root bash shell :

cd /usr/local/univnautes/pffedportal
MD=/var/db/metadata-idps.xml
VIRTUAL_ENV="/usr/local/univnautes"
export VIRTUAL_ENV
PATH="$VIRTUAL_ENV/bin:$PATH"
export PATH
python ./manage.py sync-metadata --source="federation" --idp --verbosity=3 $MD

Excepted behavior :
On stdout, messages like (variable replaced...) :
Creating %(what)s %(name)s, %(id)s
and
Updating %(what)s %(name)s, %(id)s

Actual Behavior :
No output except the fatal error that I am tracking.

(Work as expected if --verbosity=2)

(Dumb) patch attached.


Fichiers

fix_verb_check.patch (560 octets) fix_verb_check.patch CRIMA CRIMA, 17 décembre 2014 10:23

Historique

#1

Mis à jour par Benjamin Dauvergne il y a environ 9 ans

  • Statut changé de Nouveau à Rejeté
  • Patch proposed changé de Oui à Non

These concerns have been adressed in the upstream package but as univnautes architecture is changing current code is not going to be updated.

Formats disponibles : Atom PDF