[ 
https://issues.apache.org/jira/browse/PROTON-2935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18084463#comment-18084463
 ] 

ASF subversion and git services commented on PROTON-2935:
---------------------------------------------------------

Commit 48209807deb6ae3a36c28915a78656cd1acdf0be in qpid-proton's branch 
refs/heads/main from Andrew Stitcher
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=48209807d ]

PROTON-2935: Setting default logger sink doesn't fully work

If you change the default logger sink before creating a transport then
the context that you set for the default logger would get overwritten.


> Setting default logger sink context doesn't work correctly
> ----------------------------------------------------------
>
>                 Key: PROTON-2935
>                 URL: https://issues.apache.org/jira/browse/PROTON-2935
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>    Affects Versions: proton-c-0.40.0
>            Reporter: Andrew Stitcher
>            Assignee: Andrew Stitcher
>            Priority: Major
>
> If you use {{pn_logger_set_log_sink}} to set the process default_logger log 
> sink before creating a transport, the sink context gets overwritten when the 
> transport copies the default logger. So setting the logging sink early so 
> that it is used by the entire process is very limited/causes things to fail.
> This should work because setting the default logger is documented to be the 
> way to affect logging for the entire process.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to