Skip to content

Commit

Permalink
add log to user
Browse files Browse the repository at this point in the history
  • Loading branch information
bboynton97 committed Sep 18, 2024
1 parent 0ed4260 commit f363a00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions agentops/http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,3 +266,7 @@ def _handle_failed_request(
"error_type": error_type,
}
)

logger.warning(
f"An error occurred while communicating with the server: {error_type}"
)
3 changes: 0 additions & 3 deletions tests/test_http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@


@patch("builtins.open", new_callable=mock_open, read_data='{"messages": []}')
# @patch("os.path.exists", return_value=False)
# @patch("os.path.isfile", return_value=False)
# @patch("os.makedirs")
class TestHttpClient(unittest.TestCase):
MAX_RETRIES = 3
RETRY_DELAY = 1
Expand Down

0 comments on commit f363a00

Please sign in to comment.