Fix: not implement virtual class when WITH_CUSTOM_PREFIX on

This commit is contained in:
六岁小少年 2021-08-12 16:40:52 +08:00
parent 35983c895c
commit df95749e83

View File

@ -849,7 +849,7 @@ struct MyLogger : public base::Logger {
virtual void Write(bool /* should_flush */, virtual void Write(bool /* should_flush */,
time_t /* timestamp */, time_t /* timestamp */,
const char* message, const char* message,
int length) { size_t length) {
data.append(message, length); data.append(message, length);
} }
@ -981,7 +981,7 @@ struct RecordDeletionLogger : public base::Logger {
virtual void Write(bool force_flush, virtual void Write(bool force_flush,
time_t timestamp, time_t timestamp,
const char* message, const char* message,
int length) { size_t length) {
wrapped_logger_->Write(force_flush, timestamp, message, length); wrapped_logger_->Write(force_flush, timestamp, message, length);
} }
virtual void Flush() { wrapped_logger_->Flush(); } virtual void Flush() { wrapped_logger_->Flush(); }