Still get the same error message
vineeth sagar 于2019年6月11日周二 上午2:08写道:
> Try this with the override_settings decorator. like this.
>
> @override_settings(LOGGING_DIR='/tmp/test_logs/'
> def test_function1(self):
> pass
>
> On Mon, Jun 10, 2019 at 7:15 PM panfei wrote:
>
>> There is a logger
Try this with the override_settings decorator. like this.
@override_settings(LOGGING_DIR='/tmp/test_logs/'
def test_function1(self):
pass
On Mon, Jun 10, 2019 at 7:15 PM panfei wrote:
> There is a logger path for production environment, but I want to put the
> logs in /tmp/ in unittests.
>
There is a logger path for production environment, but I want to put the
logs in /tmp/ in unittests.
This is the LOGGING settings for production environment:
LOGGING_DIR = '/data0/bridge_logs_test/'
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'
3 matches
Mail list logo