Changed the logging format.

Also fixed the invalid logged message when switching clients.