Skip to content

Commit bb418a9

Browse files
committed
adding logging and removing only_one arg
1 parent 75eed37 commit bb418a9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

nodestream/project/storage.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import logging
12
from dataclasses import dataclass, field
23
from typing import Any, Dict, Optional, Union
34

@@ -26,7 +27,7 @@ def to_file_data(self):
2627
name=self.name,
2728
type=self.storage_type,
2829
hmac_key=self.hmac_key,
29-
**self.arguments
30+
**self.arguments,
3031
)
3132

3233
@staticmethod
@@ -46,7 +47,7 @@ def describe_yaml_schema():
4647
{
4748
"name": str,
4849
"type": str,
49-
Optional("hmac_key"): Or(LazyLoadedArgument, str, only_one=True),
50+
Optional("hmac_key"): Or(LazyLoadedArgument, str),
5051
Optional(str): object,
5152
}
5253
)
@@ -60,6 +61,8 @@ class StorageConfiguration:
6061

6162
def initialize_by_name(self, name: str) -> ObjectStore:
6263
if name not in self.storage_configuration_by_name:
64+
logger = logging.getLogger(__name__)
65+
logger.info(f"Store configuration '{name}' not found.")
6366
return ObjectStore.null()
6467

6568
return self.storage_configuration_by_name[name].initialize()

0 commit comments

Comments
 (0)