1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Pythonで、supabase の Storage Clientを使用しているときに出力されるログを抑制する

Posted at

結論から言うと

PythonのSupabase Storage Clientは内部でhttpxを使用しているため、そのログレベルを指定する。

import logging
# 好みのログレベルを指定する
logging.getLogger("httpx").setLevel(logging.WARNING)

事の顛末

ダウンロードの度にINFOが常に表示されると邪魔だった

2023-12-17 09:52:23,931:INFO - HTTP Request: GET https://~~~
(本当に確認したい内容)
2023-12-17 09:52:23,931:INFO - HTTP Request: GET https://~~~
2023-12-17 09:52:23,931:INFO - HTTP Request: GET https://~~~
(本当に確認したい内容)
2023-12-17 09:52:23,931:INFO - HTTP Request: GET https://~~~
(本当に確認したい内容)
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?