Fixed logging for server