Output fatal errors to both logs.
This commit is contained in:
parent
874474ddab
commit
81b25986e1
1 changed files with 3 additions and 0 deletions
|
|
@ -274,6 +274,9 @@ int main(int argc, char *argv[]) {
|
||||||
public:
|
public:
|
||||||
void append(td::CSlice slice, int log_level) override {
|
void append(td::CSlice slice, int log_level) override {
|
||||||
if (first_ && log_level <= first_verbosity_level_) {
|
if (first_ && log_level <= first_verbosity_level_) {
|
||||||
|
if (log_level == VERBOSITY_NAME(FATAL) && second_ && VERBOSITY_NAME(FATAL) <= second_verbosity_level_) {
|
||||||
|
second_->append(slice, VERBOSITY_NAME(ERROR));
|
||||||
|
}
|
||||||
first_->append(slice, log_level);
|
first_->append(slice, log_level);
|
||||||
}
|
}
|
||||||
if (second_ && log_level <= second_verbosity_level_) {
|
if (second_ && log_level <= second_verbosity_level_) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue