changes the file_logger.txt to .log
parent
9eb01d85a3
commit
ab26c07296
|
@ -112,7 +112,7 @@ def is_duplicate_operation(
|
||||||
def log_operation(
|
def log_operation(
|
||||||
operation: Operation, file_path: Path, agent: Agent, checksum: str | None = None
|
operation: Operation, file_path: Path, agent: Agent, checksum: str | None = None
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Log the file operation to the file_logger.txt
|
"""Log the file operation to the file_logger.log
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
operation: The operation to log
|
operation: The operation to log
|
||||||
|
|
|
@ -147,7 +147,7 @@ class Workspace:
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def build_file_logger_path(workspace_directory: Path) -> Path:
|
def build_file_logger_path(workspace_directory: Path) -> Path:
|
||||||
file_logger_path = workspace_directory / "file_logger.txt"
|
file_logger_path = workspace_directory / "file_logger.log"
|
||||||
if not file_logger_path.exists():
|
if not file_logger_path.exists():
|
||||||
with file_logger_path.open(mode="w", encoding="utf-8") as f:
|
with file_logger_path.open(mode="w", encoding="utf-8") as f:
|
||||||
f.write("File Operation Logger ")
|
f.write("File Operation Logger ")
|
||||||
|
|
|
@ -71,7 +71,7 @@ def config(temp_plugins_config_file: str, mocker: MockerFixture, workspace: Work
|
||||||
mocker.patch.multiple(
|
mocker.patch.multiple(
|
||||||
config,
|
config,
|
||||||
workspace_path=workspace.root,
|
workspace_path=workspace.root,
|
||||||
file_logger_path=workspace.get_path("file_logger.txt"),
|
file_logger_path=workspace.get_path("file_logger.log"),
|
||||||
)
|
)
|
||||||
yield config
|
yield config
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue