force log test to be DEBUG level

This commit is contained in:
AlanCoding 2017-08-13 08:46:31 -04:00
parent 34f8b6c868
commit f114c01a6a

View File

@ -201,6 +201,7 @@ class SettingLoggingTest(GenericAPIView):
mock_settings = MockSettings()
for k, v in serializer.validated_data.items():
setattr(mock_settings, k, v)
mock_settings.LOG_AGGREGATOR_LEVEL = 'DEBUG'
BaseHTTPSHandler.perform_test(mock_settings)
except LoggingConnectivityException as e:
return Response({'error': str(e)}, status=status.HTTP_500_INTERNAL_SERVER_ERROR)