We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99d422d commit 0ce8a2fCopy full SHA for 0ce8a2f
seleniumbase/core/log_helper.py
@@ -126,6 +126,12 @@ def log_folder_setup(log_path, archive_logs=False):
126
# have "-c" in the sys.argv list. Easy to catch.)
127
archived_logs = "%slogs_%s" % (
128
archived_folder, int(time.time()))
129
+ if "_logs" not in log_path:
130
+ # Don't move files in a custom-named log folder (in case
131
+ # the user specifed a folder with important files in it)
132
+ # unless the folder name contains "_logs".
133
+ # The default name for the log folder is "latest_logs".
134
+ return
135
shutil.move(log_path, archived_logs)
136
os.makedirs(log_path)
137
if not settings.ARCHIVE_EXISTING_LOGS and not archive_logs:
0 commit comments