Skip to content

Commit

Permalink
Minor fix to debug logging in replicationFeedStreamFromPrimaryStream (#…
Browse files Browse the repository at this point in the history
…1235)

We should only print logs when hide-user-data-from-log is off.

Signed-off-by: Binbin <[email protected]>
  • Loading branch information
enjoy-binbin authored Oct 30, 2024
1 parent 13f5f66 commit 789a73b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/replication.c
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ void replicationFeedStreamFromPrimaryStream(char *buf, size_t buflen) {
/* Debugging: this is handy to see the stream sent from primary
* to replicas. Disabled with if(0). */
if (0) {
if (server.hide_user_data_from_log) {
if (!server.hide_user_data_from_log) {
printf("%zu:", buflen);
for (size_t j = 0; j < buflen; j++) {
printf("%c", isprint(buf[j]) ? buf[j] : '.');
Expand Down

0 comments on commit 789a73b

Please sign in to comment.