File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change
1
+ import logging
1
2
from dataclasses import dataclass , field
2
3
from typing import Any , Dict , Optional , Union
3
4
@@ -26,7 +27,7 @@ def to_file_data(self):
26
27
name = self .name ,
27
28
type = self .storage_type ,
28
29
hmac_key = self .hmac_key ,
29
- ** self .arguments
30
+ ** self .arguments ,
30
31
)
31
32
32
33
@staticmethod
@@ -46,7 +47,7 @@ def describe_yaml_schema():
46
47
{
47
48
"name" : str ,
48
49
"type" : str ,
49
- Optional ("hmac_key" ): Or (LazyLoadedArgument , str , only_one = True ),
50
+ Optional ("hmac_key" ): Or (LazyLoadedArgument , str ),
50
51
Optional (str ): object ,
51
52
}
52
53
)
@@ -60,6 +61,8 @@ class StorageConfiguration:
60
61
61
62
def initialize_by_name (self , name : str ) -> ObjectStore :
62
63
if name not in self .storage_configuration_by_name :
64
+ logger = logging .getLogger (__name__ )
65
+ logger .info (f"Store configuration '{ name } ' not found." )
63
66
return ObjectStore .null ()
64
67
65
68
return self .storage_configuration_by_name [name ].initialize ()
You can’t perform that action at this time.
0 commit comments