Refactor redis log to print in both server and client