diff extensions/app_radgw/rgw_plugins.c @ 271:411314907b43

Added translation of Accounting messages
author Sebastien Decugis <sdecugis@nict.go.jp>
date Tue, 20 Apr 2010 19:34:59 +0900
parents 5df55136361b
children e203fc0c95e3
line wrap: on
line diff
--- a/extensions/app_radgw/rgw_plugins.c	Mon Apr 19 17:00:24 2010 +0900
+++ b/extensions/app_radgw/rgw_plugins.c	Tue Apr 20 19:34:59 2010 +0900
@@ -380,7 +380,7 @@
 	
 	if (ret > 0) {
 		/* Critical error, log and exit */
-		fd_log_debug("An error occurred while handling a RADIUS message, turn on DEBUG for details: %s\n", strerror(ret));
+		TRACE_DEBUG(NONE, "An error occurred while handling a RADIUS message from '%s': %s\n", rgw_clients_id(cli), strerror(ret));
 		return ret;
 	}
 	
@@ -438,6 +438,8 @@
 	
 	/* We might define other return values with special meaning here (ret == -1, ...) for example create a new Diameter request */
 	
+	/* -1: just abord the translation with no more processing. */
+	
 	return 0;
 }
 
"Welcome to our mercurial repository"