Skip to content

Commit

Permalink
Improve logging transcript
Browse files Browse the repository at this point in the history
  • Loading branch information
gb-beng committed Jan 9, 2025
1 parent bcf1ae2 commit aa1d089
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion daan_transcript.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ def generate_daan_transcript(asr_output_dir: str) -> Optional[dict]:
with open(
os.path.join(asr_output_dir, DAAN_JSON_FILE), "w+", encoding="utf-8"
) as f:
logger.info(transcript)
logger.info(f"writing transcript of length '{len(transcript)}'")
logger.debug(transcript)
json.dump(transcript, f, ensure_ascii=False, indent=4)
except EnvironmentError as e: # OSError or IOError...
logger.exception(os.strerror(e.errno))
Expand Down

0 comments on commit aa1d089

Please sign in to comment.