8152538: UL doesn't inline the LogTagSet::is_level check
Reviewed-by: mlarsson, brutisso
This commit is contained in:
parent
ee442d71e1
commit
ff771a6686
@ -49,10 +49,6 @@ LogTagSet::LogTagSet(LogTagType t0, LogTagType t1, LogTagType t2, LogTagType t3,
|
||||
_output_list.set_output_level(LogOutput::Stderr, LogLevel::Default);
|
||||
}
|
||||
|
||||
bool LogTagSet::is_level(LogLevelType level) const {
|
||||
return _output_list.is_level(level);
|
||||
}
|
||||
|
||||
void LogTagSet::update_decorators(const LogDecorators& decorator) {
|
||||
LogDecorators new_decorators = decorator;
|
||||
for (LogOutputList::Iterator it = _output_list.iterator(); it != _output_list.end(); it++) {
|
||||
|
@ -95,7 +95,12 @@ class LogTagSet VALUE_OBJ_CLASS_SPEC {
|
||||
|
||||
int label(char *buf, size_t len, const char* separator = ",") const;
|
||||
bool has_output(const LogOutput* output);
|
||||
bool is_level(LogLevelType level) const;
|
||||
|
||||
// The implementation of this function is put here to ensure
|
||||
// that it is inline:able by the log_is_enabled(level, ...) macro.
|
||||
bool is_level(LogLevelType level) const {
|
||||
return _output_list.is_level(level);
|
||||
}
|
||||
void log(LogLevelType level, const char* msg);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user