]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
rlm_python: Fix the log() call (#2981)
authorJorge Pereira <jpereira@users.noreply.github.com>
Fri, 13 Sep 2019 11:50:34 +0000 (08:50 -0300)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 13 Sep 2019 11:50:34 +0000 (06:50 -0500)
src/modules/rlm_python/example.py

index 3ba9a92efb2c244370d6449557edcecf6842a60f..7d2dc262ff130d79de10bd7c284e6b5e298d9e87 100644 (file)
@@ -15,7 +15,7 @@ def instantiate(p):
 def authorize(p):
   print("*** authorize ***")
   print("")
-  radiusd.radlog(radiusd.L_INFO, '*** radlog call in authorize ***')
+  radiusd.log(radiusd.L_INFO, '*** log call in authorize ***')
   print("")
   print(p)
   print("")
@@ -30,7 +30,7 @@ def preacct(p):
 
 def accounting(p):
   print("*** accounting ***")
-  radiusd.radlog(radiusd.L_INFO, '*** radlog call in accounting (0) ***')
+  radiusd.log(radiusd.L_INFO, '*** log call in accounting (0) ***')
   print("")
   print(p)
   return radiusd.RLM_MODULE_OK