Skip to content

Commit

Permalink
fixed logging message; text docx and works
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Chartier committed Sep 21, 2024
1 parent 8482013 commit 24488a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def extract_text_from_word(docx_path):
logging.error(f"Error extracting text from {docx_path}: {e}")
raise


# Extract audio from video and save as MP3
def extract_audio_from_video(video_path):
try:
Expand Down Expand Up @@ -329,7 +329,7 @@ def on_created(self, event):
f.write(format_markdown(api_response))
move_to_completed(working_file_path, [extracted_text_file, output_filename], self.completed_folder)

logging.error(f"Processing is complete for {working_file_path}")
logging.info(f"Processing is complete for {working_file_path}")
except Exception as e:
logging.error(f"Error processing {event.src_path}: {e}")

Expand Down

0 comments on commit 24488a6

Please sign in to comment.