Elron commited on
Commit
94ef657
1 Parent(s): 89b75a5

Upload catalog.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. catalog.py +3 -2
catalog.py CHANGED
@@ -1,4 +1,3 @@
1
- import logging
2
  import os
3
  import re
4
  from pathlib import Path
@@ -7,8 +6,10 @@ from typing import Optional
7
  import requests
8
 
9
  from .artifact import Artifact, Artifactory
 
10
  from .version import version
11
 
 
12
  COLLECTION_SEPARATOR = "."
13
  PATHS_SEP = ":"
14
 
@@ -79,7 +80,7 @@ class LocalCatalog(Catalog):
79
  os.makedirs(Path(path).parent.absolute(), exist_ok=True)
80
  artifact.save(path)
81
  if verbose:
82
- logging.info(f"Artifact {artifact_identifier} saved to {path}")
83
 
84
 
85
  class EnvironmentLocalCatalog(LocalCatalog):
 
 
1
  import os
2
  import re
3
  from pathlib import Path
 
6
  import requests
7
 
8
  from .artifact import Artifact, Artifactory
9
+ from .logging_utils import get_logger
10
  from .version import version
11
 
12
+ logger = get_logger()
13
  COLLECTION_SEPARATOR = "."
14
  PATHS_SEP = ":"
15
 
 
80
  os.makedirs(Path(path).parent.absolute(), exist_ok=True)
81
  artifact.save(path)
82
  if verbose:
83
+ logger.info(f"Artifact {artifact_identifier} saved to {path}")
84
 
85
 
86
  class EnvironmentLocalCatalog(LocalCatalog):