mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-12 20:31:18 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user