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

Prevent warning logs when recording-method is pcap #2 #1924

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

orgads
Copy link
Contributor

@orgads orgads commented Apr 6, 2025

If recording-method is pcap, then proc is zero-initialized, so meta_filepath is empty. This shows many logs such as:

[core] Failed to open recording metadata file '(null)' for writing: Bad address

Prevent them by returning earlier.

Fixes #1889 for real this time.

Amends commit 759fd72.

If recording-method is pcap, then proc is zero-initialized, so
meta_filepath is empty. This shows many logs such as:

[core] Failed to open recording metadata file '(null)' for writing: Bad address

Prevent them by returning earlier.

Fixes sipwise#1889 for real this time.

Amends commit 759fd72.
@orgads
Copy link
Contributor Author

orgads commented Apr 6, 2025

The error is unrelated to my changes.

@rfuchs
Copy link
Member

rfuchs commented Apr 7, 2025

Why not just put the check in open_proc_meta_file and do the early return there?

@orgads
Copy link
Contributor Author

orgads commented Apr 7, 2025

Why not just put the check in open_proc_meta_file and do the early return there?

To avoid needless work until we reach there. Do you consider it negligible, and prefer to move it there?

@rfuchs
Copy link
Member

rfuchs commented Apr 7, 2025

Why not just put the check in open_proc_meta_file and do the early return there?

To avoid needless work until we reach there. Do you consider it negligible, and prefer to move it there?

Doesn't really matter. I was just thinking that if it had been there in the first place, then this second commit would have been unnecessary 😁 But no matter, will merge.

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

Successfully merging this pull request may close these issues.

2 participants