mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-14 20:11:48 -05:00
Updates to logging, specifically for unit tests
This commit is contained in:
@@ -10,7 +10,6 @@ import os
|
||||
import re
|
||||
import subprocess
|
||||
import stat
|
||||
import sys
|
||||
import urllib
|
||||
import urlparse
|
||||
import threading
|
||||
@@ -118,7 +117,7 @@ class RequireDebugTrueOrTest(logging.Filter):
|
||||
|
||||
def filter(self, record):
|
||||
from django.conf import settings
|
||||
return settings.DEBUG or 'test' in sys.argv
|
||||
return settings.DEBUG or settings.IS_TESTING()
|
||||
|
||||
|
||||
class IllegalArgumentError(ValueError):
|
||||
|
||||
Reference in New Issue
Block a user