From 4abc124cce61790e311b5b16b397939d7b92d712 Mon Sep 17 00:00:00 2001 From: levlam Date: Sat, 28 Dec 2019 15:04:32 +0300 Subject: [PATCH] Add PublicRsaKeyWatchdog. GitOrigin-RevId: b59695d96b97c6ef01a8dc0da89f07e9e250d61a --- td/telegram/net/PublicRsaKeyWatchdog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/td/telegram/net/PublicRsaKeyWatchdog.cpp b/td/telegram/net/PublicRsaKeyWatchdog.cpp index 713e24674..ab380fffa 100644 --- a/td/telegram/net/PublicRsaKeyWatchdog.cpp +++ b/td/telegram/net/PublicRsaKeyWatchdog.cpp @@ -98,6 +98,7 @@ void PublicRsaKeyWatchdog::sync(BufferSlice cdn_config_serialized) { return; } cdn_config_ = r_keys.move_as_ok(); + LOG(INFO) << "Receive " << to_string(cdn_config_); for (auto &key : keys_) { sync_key(key); } @@ -114,6 +115,7 @@ void PublicRsaKeyWatchdog::sync_key(std::shared_ptr &key) { LOG(ERROR) << r_rsa.error(); continue; } + LOG(INFO) << "Add CDN " << key->dc_id() << " key with fingerprint " << r_rsa.ok().get_fingerprint(); key->add_rsa(r_rsa.move_as_ok()); } }