Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update historical data processing logs #232

Merged
merged 1 commit into from
Jul 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def process_rosbag(self,rosbag2_path):
measurement_name = Path(rosbag2_path).stem # Measurement name is rosbag name without mcap extension
rosbag2_name = Path(rosbag2_path).name

self.config.logger.info(f"rosbag name: {rosbag2_name}")
self.config.logger.info(f"Processing rosbag: {rosbag2_name}")

if not Path(rosbag2_path).exists():
processing_error_msg = f"File not found {rosbag2_path}"
Expand Down Expand Up @@ -100,6 +100,7 @@ def process_rosbag(self,rosbag2_path):
record = self.create_record_from_msg(msg, measurement_name)
# Write record to influx
self.write_api.write(bucket=self.config.influx_bucket, org=self.config.influx_org, record=record)
self.config.logger.info(f"Writing to Influxdb: {record}")

except influxdb.exceptions.InfluxDBClientError as e:
self.config.logger.error(f"Error from Influx Client: {(e.message)}")
Expand All @@ -118,7 +119,7 @@ def process_rosbag(self,rosbag2_path):
return ProcessingStatus.ERROR.value, processing_error_msg


self.config.logger.info(f"Completed rosbag processing for {rosbag2_name}")
self.config.logger.info(f"Completed rosbag processing for: {rosbag2_name}")

self.is_processing = False

Expand Down
Loading