mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-02-04 05:44:25 +01:00
Merge pull request #2708 from ugobok/patch-1
Replace print statements with logging.error
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
""" Brian speech module for autogpt """
|
||||
import logging
|
||||
import os
|
||||
|
||||
import requests
|
||||
@@ -35,6 +35,9 @@ class BrianSpeech(VoiceBase):
|
||||
os.remove("speech.mp3")
|
||||
return True
|
||||
else:
|
||||
print("Request failed with status code:", response.status_code)
|
||||
print("Response content:", response.content)
|
||||
logging.error(
|
||||
"Request failed with status code: %s, response content: %s",
|
||||
response.status_code,
|
||||
response.content,
|
||||
)
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user