Skip to content

Commit 232e90f

Browse files
refactor: change log level.
1 parent 9706107 commit 232e90f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apps/common/job/clean_debug_file_job.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def clean_debug_file():
2222
@lock(lock_key='clean_debug_file_execute', timeout=30)
2323
def clean_debug_file_lock():
2424
from django.utils.translation import gettext_lazy as _
25-
maxkb_logger.info(_('start clean debug file'))
25+
maxkb_logger.debug(_('start clean debug file'))
2626
minutes_30_ago = timezone.now() - timedelta(minutes=30)
2727
two_hours_ago = timezone.now() - timedelta(hours=2)
2828
one_days_ago = timezone.now() - timedelta(hours=24)
@@ -31,7 +31,7 @@ def clean_debug_file_lock():
3131
Q(create_time__lt=one_days_ago, source_type=FileSourceType.TEMPORARY_1_DAY.value) |
3232
Q(create_time__lt=two_hours_ago, source_type=FileSourceType.TEMPORARY_120_MINUTE.value) |
3333
Q(create_time__lt=minutes_30_ago, source_type=FileSourceType.TEMPORARY_30_MINUTE.value)).delete()
34-
maxkb_logger.info(_('end clean debug file'))
34+
maxkb_logger.debug(_('end clean debug file'))
3535

3636

3737
def run():

apps/common/management/commands/services/hands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
APPS_DIR = os.path.join(PROJECT_DIR, 'apps')
2323
TMP_DIR = os.path.join(PROJECT_DIR, 'tmp')
2424
if not os.path.exists(TMP_DIR):
25-
os.makedirs(TMP_DIR)
25+
os.makedirs(TMP_DIR, 0o700, exist_ok=True)

0 commit comments

Comments
 (0)