Moving session flush inside log_message.