File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 20
20
21
21
import io
22
22
import json
23
+ import logging
23
24
import typing
24
25
import urllib .request
25
26
31
32
32
33
_CHUNK_SIZE = 4 * 1024
33
34
35
+ _logger = logging .getLogger (__name__ )
36
+
34
37
35
38
class RADOSUnsupported (Exception ):
36
39
pass
@@ -47,6 +50,7 @@ def Rados(self) -> _RADOSObject:
47
50
name = self .client_name
48
51
else :
49
52
rados_id = self .client_name
53
+ _logger .debug ("Creating RADOS connection" )
50
54
return self .api .Rados (
51
55
name = name ,
52
56
rados_id = rados_id ,
@@ -232,8 +236,13 @@ def enable_rados_url_opener(
232
236
try :
233
237
import rados # type: ignore[import]
234
238
except ImportError :
239
+ _logger .debug ("Failed to import ceph 'rados' module" )
235
240
return
236
241
242
+ _logger .debug (
243
+ "Enabling ceph rados support with"
244
+ f" client_name={ client_name !r} , full_name={ full_name } "
245
+ )
237
246
rados_interface = _RADOSInterface ()
238
247
rados_interface .api = rados
239
248
rados_interface .client_name = client_name
You can’t perform that action at this time.
0 commit comments