mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Internal logging update
PiperOrigin-RevId: 669420403
This commit is contained in:
committed by
Copybara-Service
parent
e65a8a568c
commit
d5b5d92f87
@@ -139,7 +139,7 @@ void BaseSocket::WritePacket(absl::StatusOr<Packet> packet) {
|
||||
NEARBY_LOGS(WARNING) << "Packet status:" << packet.status();
|
||||
return;
|
||||
}
|
||||
CHECK(packet->SetPacketCounter(packet_counter_generator_.Next()).ok());
|
||||
CHECK_OK(packet->SetPacketCounter(packet_counter_generator_.Next()));
|
||||
NEARBY_LOGS(INFO) << "transmitting packet";
|
||||
connection_.Transmit(packet->GetBytes());
|
||||
}
|
||||
|
||||
@@ -20,7 +20,11 @@
|
||||
#include <utility>
|
||||
|
||||
#include "absl/base/thread_annotations.h"
|
||||
#include "internal/platform/byte_array.h"
|
||||
#include "internal/platform/future.h"
|
||||
#include "internal/platform/logging.h"
|
||||
#include "internal/platform/mutex.h"
|
||||
#include "internal/platform/runnable.h"
|
||||
#include "internal/platform/single_thread_executor.h"
|
||||
#include "internal/weave/connection.h"
|
||||
#include "internal/weave/control_packet_write_request.h"
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#include <utility>
|
||||
|
||||
#include "absl/status/status.h"
|
||||
#include "absl/status/statusor.h"
|
||||
#include "internal/weave/packet.h"
|
||||
|
||||
namespace nearby {
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <vector>
|
||||
|
||||
#include "absl/status/status.h"
|
||||
#include "absl/status/statusor.h"
|
||||
#include "absl/strings/str_format.h"
|
||||
#include "absl/strings/string_view.h"
|
||||
#include "internal/platform/byte_array.h"
|
||||
|
||||
@@ -15,11 +15,13 @@
|
||||
#ifndef THIRD_PARTY_NEARBY_INTERNAL_WEAVE_PACKET_H_
|
||||
#define THIRD_PARTY_NEARBY_INTERNAL_WEAVE_PACKET_H_
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include "absl/status/status.h"
|
||||
#include "absl/status/statusor.h"
|
||||
#include "absl/strings/string_view.h"
|
||||
#include "internal/platform/byte_array.h"
|
||||
|
||||
namespace nearby {
|
||||
|
||||
@@ -31,6 +31,7 @@ cc_library(
|
||||
"//internal/weave",
|
||||
"@com_google_absl//absl/random",
|
||||
"@com_google_absl//absl/status",
|
||||
"@com_google_absl//absl/strings",
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
@@ -14,12 +14,17 @@
|
||||
|
||||
#include "internal/weave/sockets/client_socket.h"
|
||||
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include "absl/status/status.h"
|
||||
#include "absl/strings/str_cat.h"
|
||||
#include "internal/platform/logging.h"
|
||||
#include "internal/weave/base_socket.h"
|
||||
#include "internal/weave/connection.h"
|
||||
#include "internal/weave/packet.h"
|
||||
#include "internal/weave/socket_callback.h"
|
||||
#include "internal/weave/sockets/initial_data_provider.h"
|
||||
|
||||
|
||||
@@ -17,8 +17,10 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "internal/platform/single_thread_executor.h"
|
||||
#include "internal/weave/base_socket.h"
|
||||
#include "internal/weave/connection.h"
|
||||
#include "internal/weave/packet.h"
|
||||
#include "internal/weave/socket_callback.h"
|
||||
#include "internal/weave/sockets/initial_data_provider.h"
|
||||
|
||||
|
||||
@@ -15,9 +15,12 @@
|
||||
#ifndef THIRD_PARTY_NEARBY_INTERNAL_WEAVE_SOCKETS_INITIAL_DATA_PROVIDER_H_
|
||||
#define THIRD_PARTY_NEARBY_INTERNAL_WEAVE_SOCKETS_INITIAL_DATA_PROVIDER_H_
|
||||
|
||||
#include <cmath>
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
#include "absl/random/random.h"
|
||||
#include "absl/strings/str_cat.h"
|
||||
|
||||
namespace nearby {
|
||||
namespace weave {
|
||||
|
||||
@@ -20,8 +20,12 @@
|
||||
#include <utility>
|
||||
|
||||
#include "absl/status/status.h"
|
||||
#include "absl/strings/string_view.h"
|
||||
#include "internal/platform/logging.h"
|
||||
#include "internal/weave/base_socket.h"
|
||||
#include "internal/weave/connection.h"
|
||||
#include "internal/weave/packet.h"
|
||||
#include "internal/weave/socket_callback.h"
|
||||
|
||||
namespace nearby {
|
||||
namespace weave {
|
||||
|
||||
@@ -15,10 +15,9 @@
|
||||
#ifndef THIRD_PARTY_NEARBY_INTERNAL_WEAVE_SOCKETS_SERVER_SOCKET_H_
|
||||
#define THIRD_PARTY_NEARBY_INTERNAL_WEAVE_SOCKETS_SERVER_SOCKET_H_
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "internal/weave/base_socket.h"
|
||||
#include "internal/weave/connection.h"
|
||||
#include "internal/weave/packet.h"
|
||||
#include "internal/weave/socket_callback.h"
|
||||
|
||||
namespace nearby {
|
||||
|
||||
Reference in New Issue
Block a user