Refactoring client & server
Configurable log level