Skip to content

Commit 7747796

Browse files
Merge pull request #1045 from iamamutt/master
fix(logging): 🐛 fix arguments sent to logger during config update
2 parents b0f5dc4 + 6a0047b commit 7747796

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ notebook
2525
__main__.py
2626
jupyter_custom.js
2727
apk_requirements.txt
28-
.eggs
28+
.eggs
29+
*.code-workspace

datajoint/settings.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,7 @@ def __getitem__(self, key):
241241
return self._conf[key]
242242

243243
def __setitem__(self, key, value):
244-
logger.debug(
245-
logging.DEBUG, "Setting {0:s} to {1:s}".format(str(key), str(value))
246-
)
244+
logger.debug("Setting {0:s} to {1:s}".format(str(key), str(value)))
247245
if validators[key](value):
248246
self._conf[key] = value
249247
else:

0 commit comments

Comments
 (0)