From d26bf4dc97b6bfbcd7d9dff032d92c255d82d264 Mon Sep 17 00:00:00 2001 From: Hugo LEVY-FALK Date: Wed, 23 Jan 2019 21:02:35 +0100 Subject: [PATCH] fix encoding --- freeradius_utils/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freeradius_utils/auth.py b/freeradius_utils/auth.py index 0e83b610..1bbe30cc 100644 --- a/freeradius_utils/auth.py +++ b/freeradius_utils/auth.py @@ -76,7 +76,7 @@ class RadiusdHandler(logging.Handler): rad_sig = radiusd.L_INFO else: rad_sig = radiusd.L_DBG - radiusd.radlog(rad_sig, record.msg) + radiusd.radlog(rad_sig, record.msg.encode('utf-8')) # Initialisation d'un logger (pour logguer unifié)