Skip to content

Commit f6eddc6

Browse files
committed
supress log messages under test
1 parent 03770f4 commit f6eddc6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

project/config/settings/base.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,10 @@
257257
"level": "DEBUG",
258258
"class": "logging.StreamHandler",
259259
"formatter": "verbose",
260-
}
260+
},
261+
"null": {
262+
"class": "logging.NullHandler",
263+
},
261264
},
262265
"root": {"level": "INFO", "handlers": ["console"]},
263266
}

project/config/settings/test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,4 @@
4444

4545
# Your stuff...
4646
# ------------------------------------------------------------------------------
47+
LOGGING["root"]["handlers"] = ["null"]

0 commit comments

Comments
 (0)