Add device token debug.
GitOrigin-RevId: 451f00d33959eddbd73381775df19338945898d9
This commit is contained in:
parent
fcb877b78c
commit
b16caabe8e
@ -110,7 +110,7 @@ StringBuilder &operator<<(StringBuilder &string_builder, const DeviceTokenManage
|
||||
string_builder << ", sandboxed";
|
||||
}
|
||||
if (token_info.encrypt) {
|
||||
string_builder << ", encrypted";
|
||||
string_builder << ", encrypted with ID " << token_info.encryption_key_id;
|
||||
}
|
||||
return string_builder;
|
||||
}
|
||||
@ -327,7 +327,7 @@ void DeviceTokenManager::start_up() {
|
||||
}
|
||||
token.token = serialized.substr(1);
|
||||
}
|
||||
LOG(INFO) << "GET device token " << token_type << "--->" << token;
|
||||
LOG(INFO) << "Have device token " << token_type << "--->" << token;
|
||||
if (token.state == TokenInfo::State::Sync && !token.token.empty()) {
|
||||
token.state = TokenInfo::State::Register;
|
||||
}
|
||||
|
@ -2645,10 +2645,10 @@ void NotificationManager::process_push_notification(string payload, Promise<Unit
|
||||
}
|
||||
|
||||
auto receiver_id = r_receiver_id.move_as_ok();
|
||||
VLOG(notifications) << "Process push notification \"" << format::escaped(payload)
|
||||
<< "\" with receiver_id = " << receiver_id;
|
||||
|
||||
auto encryption_keys = td_->device_token_manager_->get_actor_unsafe()->get_encryption_keys();
|
||||
VLOG(notifications) << "Process push notification \"" << format::escaped(payload)
|
||||
<< "\" with receiver_id = " << receiver_id << " and " << encryption_keys.size()
|
||||
<< " encryption keys";
|
||||
bool was_encrypted = false;
|
||||
for (auto &key : encryption_keys) {
|
||||
VLOG(notifications) << "Have key " << key.first;
|
||||
|
Reference in New Issue
Block a user