Skip to content

Commit 40a84b4

Browse files
lukebaumanncopybara-github
authored andcommitted
Ensure all logger instances in pathwaysutils are _logger
PiperOrigin-RevId: 918028303
1 parent 0097f1b commit 40a84b4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pathwaysutils/persistence/orbax_handler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from pathwaysutils.persistence import helper
3030

3131

32-
logger = logging.getLogger(__name__)
32+
_logger = logging.getLogger(__name__)
3333

3434
ParamInfo = type_handlers.ParamInfo
3535
SaveArgs = type_handlers.SaveArgs
@@ -197,7 +197,7 @@ async def deserialize(
197197
mesh_axes.append(sharding.spec)
198198
shardings.append(sharding)
199199
if arg.global_shape is None or arg.dtype is None:
200-
logger.warning(
200+
_logger.warning(
201201
"Shape or dtype not provided for restoration. Provide these"
202202
" properties for improved performance."
203203
)
@@ -279,7 +279,7 @@ def register_pathways_handlers(
279279
array_metadata_store: array_metadata_store_lib.Store | None = None,
280280
):
281281
"""Function that must be called before saving or restoring with Pathways."""
282-
logger.debug(
282+
_logger.debug(
283283
"Registering CloudPathwaysArrayHandler (Pathways Persistence API)."
284284
)
285285
type_handlers.register_type_handler(

0 commit comments

Comments
 (0)