mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2025-02-02 15:17:33 +01:00
Output fatal errors to both logs.
This commit is contained in:
parent
874474ddab
commit
81b25986e1
@ -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…
x
Reference in New Issue
Block a user