Remove duplicate log setup
This commit is contained in:
parent
0c1c65182c
commit
bddf47816f
1 changed files with 2 additions and 8 deletions
|
|
@ -627,14 +627,6 @@ class State():
|
|||
cli.clear_screen()
|
||||
disk_menu = menus.disks()
|
||||
source_parts = []
|
||||
|
||||
# Set log
|
||||
log.update_log_path(
|
||||
dest_dir=self.log_dir,
|
||||
dest_name='main',
|
||||
keep_history=True,
|
||||
timestamp=False,
|
||||
)
|
||||
self.ui.set_progress_file(str(self.progress_out))
|
||||
|
||||
# Set mode
|
||||
|
|
@ -1792,6 +1784,8 @@ def source_or_destination_changed(state) -> bool:
|
|||
def main() -> None:
|
||||
"""Main function for ddrescue TUI."""
|
||||
args = docopt(DOCSTRING)
|
||||
|
||||
# Log setup
|
||||
log_dir = log.format_log_path()
|
||||
log_dir = pathlib.Path(
|
||||
f'{log_dir.parent}/'
|
||||
|
|
|
|||
Loading…
Reference in a new issue