1. fix a bug in agency election
2. change the election success log to show well formatted agency ids.

Signed-off-by: free-walker <wally.1981@yahoo.com>