Skip to content

Commit

Permalink
chore: can cancel setup_logging when init client
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Jul 21, 2023
1 parent 349b21b commit e30b0e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async for file in api.drive.file.action.get_files(get_all=True):
- `DriveActions.get_folders`
- `Pagination` クラスが追加されました
- 基本的にユーザーが使うことは想定されていません

- [@omg-xtao](https://github.com/omg-xtao) can cancel setup_logging when init client.

## [0.4.3] 2023-04-25

Expand Down
5 changes: 3 additions & 2 deletions mipac/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ def __init__(
url: str,
token: str | None = None,
*,
log_level: LOGING_LEVEL_TYPE = 'INFO',
log_level: LOGING_LEVEL_TYPE | None = 'INFO',
use_version: IMisskeyVersions = 12,
use_version_autodetect: bool = True
) -> None:
setup_logging(level=log_level)
if log_level is not None:
setup_logging(level=log_level)
config.from_dict(use_version=use_version, use_version_autodetect=use_version_autodetect)
self.config: Config = config
self.http: HTTPClient = HTTPClient(url, token)
Expand Down

0 comments on commit e30b0e4

Please sign in to comment.