Merge pull request #253 from AlanCoding/another_log_fix

force log test to be DEBUG level
This commit is contained in:
Alan Rominger 2017-08-14 08:49:21 -04:00 committed by GitHub
commit f2dc3e1b6f

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)