Skip to content

Commit f341d54

Browse files
committed
apply suggestions from code review.
1 parent 5b96445 commit f341d54

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Update - Import ABC from collections.abc for Python 3.10 compatibility
99
* Bugfix - Fix multiprocessing value error (#1013) PR #1026
1010

11-
### 0.13.4 -- March, 28 2022
11+
### 0.13.4 -- Mar, 28 2022
1212
* Add - Allow reading blobs produced by legacy 32-bit compiled mYm library for matlab. PR #995
1313
* Bugfix - Add missing `jobs` argument for multiprocessing PR #997
1414
* Add - Test for multiprocessing PR #1008

datajoint/autopopulate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def handler(signum, frame):
206206
elif order == "random":
207207
random.shuffle(keys)
208208

209-
logger.info("Found %d keys to populate" % len(keys))
209+
logger.debug("Found %d keys to populate" % len(keys))
210210

211211
keys = keys[:max_calls]
212212
nkeys = len(keys)

datajoint/logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
log_level = os.getenv("DJ_LOG_LEVEL", "info").upper()
99

1010
log_format = logging.Formatter(
11-
"[%(asctime)s][%(funcName)s][%(levelname)s]: %(message)s"
11+
"[%(asctime)s][%(levelname)s]: %(message)s"
1212
)
1313

1414
stream_handler = logging.StreamHandler() # default handler

datajoint/schemas.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def activate(
134134
)
135135
)
136136
# create database
137-
logger.info("Creating schema `{name}`.".format(name=schema_name))
137+
logger.debug("Creating schema `{name}`.".format(name=schema_name))
138138
try:
139139
self.connection.query(
140140
"CREATE DATABASE `{name}`".format(name=schema_name)
@@ -360,12 +360,12 @@ def drop(self, force=False):
360360
)
361361
== "yes"
362362
):
363-
logger.info("Dropping `{database}`.".format(database=self.database))
363+
logger.debug("Dropping `{database}`.".format(database=self.database))
364364
try:
365365
self.connection.query(
366366
"DROP DATABASE `{database}`".format(database=self.database)
367367
)
368-
logger.info(
368+
logger.debug(
369369
"Schema `{database}` was dropped successfully.".format(
370370
database=self.database
371371
)

datajoint/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@ def __getitem__(self, key):
240240
return self._conf[key]
241241

242242
def __setitem__(self, key, value):
243-
logger.log(
244-
logging.INFO, "Setting {0:s} to {1:s}".format(str(key), str(value))
243+
logger.debug(
244+
logging.DEBUG, "Setting {0:s} to {1:s}".format(str(key), str(value))
245245
)
246246
if validators[key](value):
247247
self._conf[key] = value

docs-parts/intro/Releases_lang1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Update - Import ABC from collections.abc for Python 3.10 compatibility
99
* Bugfix - Fix multiprocessing value error (#1013) PR #1026
1010

11-
0.13.4 -- March 28, 2022
11+
0.13.4 -- Mar 28, 2022
1212
----------------------
1313
* Add - Allow reading blobs produced by legacy 32-bit compiled mYm library for matlab. PR #995
1414
* Bugfix - Add missing ``jobs`` argument for multiprocessing PR #997

0 commit comments

Comments
 (0)