Skip to content

Commit

Permalink
Use structlog.get_logger() with no arguments
Browse files Browse the repository at this point in the history
This allows easier default configuration (structlog still reports the
module where the logs originate).
  • Loading branch information
kjsanger committed Oct 31, 2023
1 parent 021e801 commit 43c2d4c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/partisan/cli.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright © 2022 Genome Research Ltd. All rights reserved.
# Copyright © 2022, 2023 Genome Research Ltd. All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -30,7 +30,7 @@
from partisan.irods import Collection, DataObject, make_rods_item, rods_path_type

logging.basicConfig(level=logging.ERROR)
log = get_logger(__name__)
log = get_logger()


class RodsPathType(ParamType):
Expand Down
2 changes: 1 addition & 1 deletion src/partisan/icommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

from partisan.exception import RodsError

log = get_logger(__name__)
log = get_logger()


def mkgroup(name: str):
Expand Down
3 changes: 2 additions & 1 deletion src/partisan/irods.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
)
from partisan.icommands import iquest, itrim, iuserinfo

log = get_logger(__name__)
log = get_logger()

"""This module provides a basic API for accessing iRODS using the native
iRODS client 'baton' (https://github.com/wtsi-npg/baton).
Expand Down Expand Up @@ -268,6 +268,7 @@ def checksum(
timeout=timeout,
tries=tries,
)

checksum = result[Baton.CHECKSUM]
return checksum

Expand Down

0 comments on commit 43c2d4c

Please sign in to comment.