Fix a bug in ThreadPool
Improve logging in Server connection
Add default value for enableXXXX in logging