fix compile bug (feeding std::endl to logger)