Skip to content

Commit

Permalink
Merge pull request #2972 from metalefty/logs
Browse files Browse the repository at this point in the history
Suppress some logs when no errors
  • Loading branch information
metalefty authored Feb 29, 2024
2 parents a2c0d39 + 0b4150f commit 5ccabaf
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions xrdp/xrdp_egfx.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,11 @@ xrdp_egfx_send_frame_start(struct xrdp_egfx *egfx, int frame_id, int timestamp)
LOG(LOG_LEVEL_TRACE, "xrdp_egfx_send_frame_start:");
s = xrdp_egfx_frame_start(egfx->bulk, frame_id, timestamp);
error = xrdp_egfx_send_s(egfx, s);
LOG(LOG_LEVEL_DEBUG, "xrdp_egfx_send_frame_start: xrdp_egfx_send_s "
"error %d", error);
if (error != 0)
{
LOG(LOG_LEVEL_DEBUG, "xrdp_egfx_send_frame_start: xrdp_egfx_send_s "
"error %d", error);
}
free_stream(s);
return error;
}
Expand Down Expand Up @@ -434,8 +437,11 @@ xrdp_egfx_send_frame_end(struct xrdp_egfx *egfx, int frame_id)
LOG(LOG_LEVEL_TRACE, "xrdp_egfx_send_frame_end:");
s = xrdp_egfx_frame_end(egfx->bulk, frame_id);
error = xrdp_egfx_send_s(egfx, s);
LOG(LOG_LEVEL_DEBUG, "xrdp_egfx_send_frame_end: xrdp_egfx_send_s "
"error %d", error);
if (error != 0)
{
LOG(LOG_LEVEL_DEBUG, "xrdp_egfx_send_frame_end: xrdp_egfx_send_s "
"error %d", error);
}
free_stream(s);
return error;
}
Expand Down

0 comments on commit 5ccabaf

Please sign in to comment.