moved logger auth success to req,event classes

override to_s for req,event classes

rename authenticate to identify in base class
This commit is contained in:
onyx-and-iris
2022-10-25 00:03:43 +01:00
parent 9842bed8b6
commit b33fe94cee
3 changed files with 13 additions and 8 deletions

View File

@@ -14,10 +14,15 @@ module OBSWS
def initialize(**kwargs)
@base_client = Base.new(**kwargs)
LOGGER.info("#{self} succesfully identified with server")
@base_client.add_observer(self)
@response = { requestId: 0 }
end
def to_s
"#{self.class.name.split("::").last(2).join("::")}"
end
def run
yield
ensure