Skip to content

Commit 9ed5814

Browse files
committed
Merge remote-tracking branch 'relay/degrade-err'
2 parents 5539ea4 + b7546d0 commit 9ed5814

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

IntelPresentMon/Streamer/StreamClient.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,21 +70,21 @@ PmNsmFrameData* StreamClient::ReadFrameByIdx(uint64_t frame_idx, bool checked) {
7070

7171
if (shared_mem_view_->IsEmpty()) {
7272
if (checked) {
73-
pmlog_error("Trying to read from empty nsm ring").pmwatch(frame_idx);
73+
pmlog_warn("Trying to read from empty nsm ring").pmwatch(frame_idx);
7474
}
7575
return nullptr;
7676
}
7777

7878
auto p_header = shared_mem_view_->GetHeader();
7979

8080
if (!p_header->process_active) {
81-
LOG(ERROR) << "Process is not active. Shared mem view to be destroyed.";
81+
pmlog_warn("Process is not active. Shared mem view to be destroyed.");
8282
CloseSharedMemView();
8383
return nullptr;
8484
}
8585

8686
if (frame_idx > p_header->max_entries - 1) {
87-
pmlog_error("Bad out of bounds index in circular buffer").pmwatch(frame_idx);
87+
pmlog_warn("Bad out of bounds index in circular buffer").pmwatch(frame_idx);
8888
return nullptr;
8989
}
9090

@@ -106,7 +106,7 @@ PmNsmFrameData* StreamClient::ReadFrameByIdx(uint64_t frame_idx, bool checked) {
106106
}
107107
}
108108
if (invalid) {
109-
pmlog_error("Invalid frame idx").pmwatch(frame_idx);
109+
pmlog_warn("Invalid frame idx").pmwatch(frame_idx);
110110
return nullptr;
111111
}
112112
}

0 commit comments

Comments
 (0)