limit default error handler to 1 message/second to avoid flood

This commit is contained in:
gabime
2019-07-17 18:05:01 +03:00
parent bcb6484062
commit 3c30f77d31
2 changed files with 20 additions and 4 deletions

View File

@@ -317,8 +317,8 @@ protected:
virtual void flush_();
bool should_flush_(const details::log_msg &msg);
// default error handler.
// print the error to stderr with the max rate of 1 message/minute.
// handle errors during logging.
// default handler prints the error to stderr at max rate of 1 message/sec.
void err_handler_(const std::string &msg);
};