Enforce logging to use str (#3579)

* updating dependencies

* enforce the last method to keep args and kwargs as  str only

* Removed a modified file from pull request

Co-authored-by: Chavithra <chavithra@gmail.com>
This commit is contained in:
Henrique Joaquim
2022-11-25 15:30:25 +00:00
committed by GitHub
parent d3d6bbe6f9
commit 0a41d6787e

View File

@@ -258,8 +258,8 @@ class OperationLogger:
)
OperationLogger.last_method = {
f"{self.__method_chosen.__module__}.{self.__method_chosen.__name__}": {
"args": self.__args,
"kwargs": self.__kwargs,
"args": str(self.__args)[:100],
"kwargs": str(self.__kwargs)[:100],
}
}
@@ -288,8 +288,8 @@ class OperationLogger:
def __check_last_method(self) -> bool:
current_method = {
f"{self.__method_chosen.__module__}.{self.__method_chosen.__name__}": {
"args": self.__args,
"kwargs": self.__kwargs,
"args": str(self.__args)[:100],
"kwargs": str(self.__kwargs)[:100],
}
}
return OperationLogger.last_method == current_method