freeradius/auth.py: log en cas de plantage
This commit is contained in:
parent
4d3581f2a8
commit
7fd5e3f132
1 changed files with 5 additions and 1 deletions
|
@ -82,7 +82,11 @@ def radius_event(f):
|
||||||
# Beware: les valeurs scalaires sont entre guillemets
|
# Beware: les valeurs scalaires sont entre guillemets
|
||||||
# Ex: Calling-Station-Id: "une_adresse_mac"
|
# Ex: Calling-Station-Id: "une_adresse_mac"
|
||||||
data[key] = value.replace('"', '')
|
data[key] = value.replace('"', '')
|
||||||
|
try:
|
||||||
return f(data)
|
return f(data)
|
||||||
|
except Exception as e:
|
||||||
|
logger.error(repr(e) + ' on data ' + repr(auth_data))
|
||||||
|
raise
|
||||||
|
|
||||||
return new_f
|
return new_f
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue