Skip to content

Commit

Permalink
update historical data processing logs (#232)
Browse files Browse the repository at this point in the history
update logs
  • Loading branch information
adev4a authored Jul 2, 2024
1 parent 091c8d3 commit 939beb1
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit 939beb1

Please sign in to comment.