MySQL 9.1.0
Source Code Documentation
|
#include <log_suppressor.h>
Public Types | |
enum class | MessageId { kDisconnectExistingSessionsWhenHidden , kHidden , kIncompatibleInstanceType , kInstanceType , kReadOnlyTargets , kUnreachableQuorumAllowedTraffic , kDeprecatedMetadataVersion } |
Public Member Functions | |
void | log_message (const MessageId id, const std::string &uuid, const std::string &message, bool invalid_condition, mysql_harness::logging::LogLevel invalid_condition_level=mysql_harness::logging::LogLevel::kWarning, mysql_harness::logging::LogLevel valid_condition_level=mysql_harness::logging::LogLevel::kWarning, const bool log_initial_valid=false) |
~LogSuppressor () | |
Static Public Member Functions | |
static LogSuppressor & | instance () |
Private Types | |
using | MessageKey = std::pair< std::string, MessageId > |
Private Member Functions | |
LogSuppressor ()=default | |
LogSuppressor (const LogSuppressor &)=delete | |
LogSuppressor & | operator= (const LogSuppressor &)=delete |
Private Attributes | |
std::map< MessageKey, std::string > | messages_ |
|
private |
|
strong |
|
default |
|
privatedefault |
|
privatedelete |
|
inlinestatic |
void metadata_cache::LogSuppressor::log_message | ( | const MessageId | id, |
const std::string & | uuid, | ||
const std::string & | message, | ||
bool | invalid_condition, | ||
mysql_harness::logging::LogLevel | invalid_condition_level = mysql_harness::logging::LogLevel::kWarning , |
||
mysql_harness::logging::LogLevel | valid_condition_level = mysql_harness::logging::LogLevel::kWarning , |
||
const bool | log_initial_valid = false |
||
) |
|
privatedelete |
|
private |