restore.log 中日期和注释错位.
Closed this issue · 0 comments
Water-Buckets commented
在pb_files/logs/restore.log
中date
和comment
的值如下对换:
[2024-08-22 14:21:31,933 INFO] (run) Player _Water_Bucket_ restored world to backup #96 (date=shulker3, comment='2024-08-22 11:41:43'), pre-restore temp backup: #103
其中shulker3为注释, '2024-08-22 11:41:43'为日期.
初步定位问题出现在prime_backup/mcdr/task/backup/restore_backup_task.py
的118 行:
with log_utils.open_file_logger('restore') as logger:
logger.info('{} restored world to backup #{} (date={}, comment={!r}), pre-restore temp backup: {}'.format(
self.source, backup.id, backup.comment, backup.date_str, pre_restore_backup_id,
))
backup.comment
, backup.date_str
两个参数反了.
修改后为:
with log_utils.open_file_logger('restore') as logger:
logger.info('{} restored world to backup #{} (date={}, comment={!r}), pre-restore temp backup: {}'.format(
self.source, backup.id, backup.date_str, backup.comment, pre_restore_backup_id,
))
(虽然不影响使用啾逝了