Print

Print


Hi David,

I beg your pardon, I haven't read full description of your problem, and thanks for the reproducer!

The problem is you create an instance of XrdCl::DefaultEnv, you mustn't be doing that (that's bad design on our side, the constructor should have been private). Instead please use the getter methods. For example, in order to get access to the logger do:

XrdCl::Log *log = XrdCl::DefaultEnv::GetLog();

or if you want access to the environment itself do:

XrdCl::Env *env = XrdCl::DefaultEnv::GetEnv();

Hope this solves your problem. Let me know if I can close this issue.

Cheers,
Michal


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/xrootd/xrootd","title":"xrootd/xrootd","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/xrootd/xrootd"}},"updates":{"snippets":[{"icon":"PERSON","message":"@simonmichal in #919: Hi David,\r\n\r\nI beg your pardon, I haven't read full description of your problem, and thanks for the reproducer!\r\n\r\nThe problem is you create an instance of _XrdCl::DefaultEnv_, you mustn't be doing that (that's bad design on our side, the constructor should have been _private_). Instead please use the _getter_ methods. For example, in order to get access to the logger do:\r\n\r\n\u003e XrdCl::Log *log = XrdCl::DefaultEnv::GetLog();\r\n\r\nor if you want access to the environment itself do:\r\n\r\n\u003e XrdCl::Env *env = XrdCl::DefaultEnv::GetEnv();\r\n\r\nHope this solves your problem. Let me know if I can close this issue.\r\n\r\nCheers,\r\nMichal"}],"action":{"name":"View Issue","url":"https://github.com/xrootd/xrootd/issues/919#issuecomment-469606356"}}} [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/919#issuecomment-469606356", "url": "https://github.com/xrootd/xrootd/issues/919#issuecomment-469606356", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1