Skip to content

Commit f0d69f4

Browse files
authored
Merge pull request #434 from nodestream-proj/LoggingMetrics
Spelling mistake fix, along with reducing the logging level of missing storage messages.
2 parents 466466a + 8b23d09 commit f0d69f4

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

nodestream/cli/operations/initialize_logger.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
from pythonjsonlogger.jsonlogger import JsonFormatter
66

7-
from ...metrics import Metrics
8-
from ..commands.nodestream_command import NodestreamCommand
7+
from nodestream.cli.commands.nodestream_command import NodestreamCommand
8+
from nodestream.metrics import Metrics
9+
910
from .operation import Operation
1011

1112

nodestream/pipeline/object_storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ class NullObjectStore(ObjectStore, alias="null"):
253253
"""An object store that does not store any objects."""
254254

255255
def __init__(self):
256-
logger.error("Using null ObjectStore. No persistence is configured.")
256+
logger.info("Using null ObjectStore. No persistence is configured.")
257257

258258
def get(self, _: str) -> Optional[bytes]:
259259
return None

nodestream/pipeline/pipeline_file_loader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class PipelineInitializationArguments:
5252
annotations: Optional[List[str]] = None
5353
on_effective_configuration_resolved: Optional[Callable[[List[Dict]], None]] = None
5454
extra_steps: Optional[List[Step]] = None
55-
effecitve_config_values: Optional[ScopeConfig] = None
55+
effective_config_values: Optional[ScopeConfig] = None
5656
object_store: ObjectStore = field(default_factory=ObjectStore.null)
5757

5858
@classmethod
@@ -145,7 +145,7 @@ def __init__(self, step_definitions: List[StepDefinition]) -> None:
145145
self.step_definitions = step_definitions
146146

147147
def initialize_with_arguments(self, init_args: PipelineInitializationArguments):
148-
with set_config(init_args.effecitve_config_values):
148+
with set_config(init_args.effective_config_values):
149149
steps_defined_in_file = [
150150
step_definition.load_step()
151151
for step_definition in self.step_definitions

nodestream/project/run_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ async def execute_with_definition(self, definition: PipelineDefinition):
5656
await pipeline.run(self.progress_reporter)
5757

5858
def set_configuration(self, scope_config: ScopeConfig):
59-
self.initialization_arguments.effecitve_config_values = scope_config
59+
self.initialization_arguments.effective_config_values = scope_config

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "nodestream"
3-
version = "0.14.14"
3+
version = "0.14.15"
44
description = "A Fast, Declarative ETL for Graph Databases."
55
license = "GPL-3.0-only"
66
authors = [

tests/unit/pipeline/test_pipeline_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def test_pipeline_file_loads_lazy():
7070

7171
def test_pipeline_file_loads_config_when_set():
7272
init_args = PipelineInitializationArguments(
73-
effecitve_config_values=ScopeConfig({"name": "test"})
73+
effective_config_values=ScopeConfig({"name": "test"})
7474
)
7575
file_contents = PipelineFileContents.read_from_file(
7676
Path("tests/unit/pipeline/fixtures/config_pipeline.yaml")

0 commit comments

Comments
 (0)