Project

General

Profile

Bug #6164

Log level handling in sync-metadata.py

Added by CRIMA CRIMA over 9 years ago. Updated over 9 years ago.

Status:
Rejeté
Priority:
Bas
Assignee:
-
Category:
SP (pffedportal)
Target version:
-
Start date:
17 December 2014
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
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.


Files

fix_verb_check.patch (560 Bytes) fix_verb_check.patch CRIMA CRIMA, 17 December 2014 10:23 AM

History

#1

Updated by Benjamin Dauvergne over 9 years ago

  • Status changed from Nouveau to Rejeté
  • Patch proposed changed from Yes to No

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

Also available in: Atom PDF