Skip to content

Commit

Permalink
Merge pull request #8 from ryanpeach/feature/more-logs
Browse files Browse the repository at this point in the history
More logging
  • Loading branch information
ryanpeach authored Mar 18, 2024
2 parents 2a16afe + 93573c9 commit 4b03643
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dogbarking/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def nogui(
assert smtp_server is not None
assert smtp_port is not None
logger.info("Sending start email...")
logger.warning("Do not leave unatennded until you receive the start email.")
Email(
sender_email=sender_email,
receiver_email=receiver_email,
Expand All @@ -144,6 +145,7 @@ def nogui(
frames_per_buffer=int(sample_freq * seconds_per_buffer),
)
r.start()
logger.info("Recording started! You may now leave the room!")

# If the rms of the waveform is greater than the threshold, play the sound
rms_history = []
Expand Down

0 comments on commit 4b03643

Please sign in to comment.