Move get_logs to be static method

This commit is contained in:
Matthias
2020-12-06 19:57:48 +01:00
parent 058d40a72c
commit 51fbd0698c
3 changed files with 4 additions and 3 deletions

View File

@@ -645,7 +645,8 @@ class RPC:
}
return res
def _rpc_get_logs(self, limit: Optional[int]) -> Dict[str, Any]:
@staticmethod
def _rpc_get_logs(limit: Optional[int]) -> Dict[str, Any]:
"""Returns the last X logs"""
if limit:
buffer = bufferHandler.buffer[-limit:]