refactor(socket) log: add msg condition