Skip to content

Commit

Permalink
Merge branch 'main' into graylog_integration
Browse files Browse the repository at this point in the history
  • Loading branch information
YooSunYoung authored Jun 11, 2024
2 parents f80a099 + 399dbfa commit cfd55ed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion resources/loki.configuration.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@
"value" : "",
"type" : "string"
},
]
]
4 changes: 2 additions & 2 deletions src/scicat_ingestor.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def main() -> None:

# instantiate a new process and runs backeground ingestor
# on the nexus file
pass
...

# check if we need to commit the individual message
if config.kafka_options.individual_message_commit:
elif config.kafka_options.individual_message_commit:
consumer.commit(message=message)
4 changes: 2 additions & 2 deletions src/scicat_kafka.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def wrdn_messages(
message_value = message.value()
message_type = message_value[4:8]
logger.info("Received message. Type : %s", message_type)
if message_value == b"wrdn":
yield _deserialise_wrdn(message.value(), logger)
if message_type == b"wrdn":
yield _deserialise_wrdn(message_value, logger)
else:
yield None

0 comments on commit cfd55ed

Please sign in to comment.