Skip to content

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

Closed
orgads wants to merge 1 commit intosipwise:masterfrom
audiocodes:pcap-no-warnings-2
Closed

Prevent warning logs when recording-method is pcap #2#1924
orgads wants to merge 1 commit intosipwise:masterfrom
audiocodes:pcap-no-warnings-2

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.

@orgads
Copy link
Contributor Author

orgads commented Apr 16, 2025

@rfuchs ping

I double-checked, and there are no other calls, so this should seal this case without extra work. If you still prefer to move the condition to open_proc_meta_file (and remove the previous fix as well), let me know and I'll update the PR.

@rfuchs
Copy link
Member

rfuchs commented Apr 16, 2025

Sorry for the delay, completely lost focus on this

sipwise-jenkins pushed a commit that referenced this pull request Apr 16, 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.

Closes #1924

Change-Id: I25c9acefba9ee129354fd799ef493af86b9eab2c
(cherry picked from commit 312997c)
sipwise-jenkins pushed a commit that referenced this pull request Apr 16, 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.

Closes #1924

Change-Id: I25c9acefba9ee129354fd799ef493af86b9eab2c
(cherry picked from commit 312997c)
sipwise-jenkins pushed a commit that referenced this pull request Apr 16, 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.

Closes #1924

Change-Id: I25c9acefba9ee129354fd799ef493af86b9eab2c
(cherry picked from commit 312997c)
sipwise-jenkins pushed a commit that referenced this pull request Apr 16, 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.

Closes #1924

Change-Id: I25c9acefba9ee129354fd799ef493af86b9eab2c
(cherry picked from commit 312997c)
sipwise-jenkins pushed a commit that referenced this pull request Apr 16, 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.

Closes #1924

Change-Id: I25c9acefba9ee129354fd799ef493af86b9eab2c
(cherry picked from commit 312997c)
sipwise-jenkins pushed a commit that referenced this pull request Apr 16, 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.

Closes #1924

Change-Id: I25c9acefba9ee129354fd799ef493af86b9eab2c
(cherry picked from commit 312997c)
(cherry picked from commit d4dee6c)
sipwise-jenkins pushed a commit that referenced this pull request Apr 16, 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.

Closes #1924

Change-Id: I25c9acefba9ee129354fd799ef493af86b9eab2c
(cherry picked from commit 312997c)
(cherry picked from commit d7d51e8)
sipwise-jenkins pushed a commit that referenced this pull request Apr 16, 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.

Closes #1924

Change-Id: I25c9acefba9ee129354fd799ef493af86b9eab2c
(cherry picked from commit 312997c)
(cherry picked from commit 8576d50)
sipwise-jenkins pushed a commit that referenced this pull request Apr 16, 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.

Closes #1924

Change-Id: I25c9acefba9ee129354fd799ef493af86b9eab2c
(cherry picked from commit 312997c)
(cherry picked from commit 83fa97f)
@orgads orgads deleted the pcap-no-warnings-2 branch July 29, 2025 12:40
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