Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple "xfrd: zone %s written received XFR packet from %s with serial %u to " logged #333

Open
ttyS4 opened this issue Jun 5, 2024 · 3 comments

Comments

@ttyS4
Copy link

ttyS4 commented Jun 5, 2024

xfrd.c:#L2472 is where this message is logged.

I believe the intention is to log only on the last because of the if statement:
zone->latest_xfr->msg_seq_nr == 0 however there is no { and } it is a naked if statement

Probably only a few uses verbosity level 4 like I do so no one noticed.

@wtoorop
Copy link
Member

wtoorop commented Jun 6, 2024

Hi Tamas, actually I believe this is correct, because the message is logged for every packet that is part of the transfer and that has been written out to the transfer file on disk. Perhaps it would be better to take along the msg_seq_nr in the message though, so you don't see exactly the same message repeated for all the packets that make up the entire transfer.

@ttyS4
Copy link
Author

ttyS4 commented Jun 6, 2024

hi Willem,
Oh, okay. So you say that this is intentional? Looking at the code again I tend to agree.

Maybe I should just tune my logging level? I will check and come back.

@jaredmauch
Copy link
Contributor

I also have this same issue in my logs, so perhaps it would be useful to add the message?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants