diff options
| author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-10-04 19:10:45 +0200 |
|---|---|---|
| committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-10-04 19:10:45 +0200 |
| commit | 99693d39de7afd9465d1ec9190e03b447f602bd2 (patch) | |
| tree | 46c26b9293c460de274b4bbc52f29068d5009c11 /session.py | |
| parent | 83437b6bf3634cad46ff6a8e8c4b82c6a59771f5 (diff) | |
| download | RWA.Support.SessionService-99693d39de7afd9465d1ec9190e03b447f602bd2.tar.gz RWA.Support.SessionService-99693d39de7afd9465d1ec9190e03b447f602bd2.tar.bz2 RWA.Support.SessionService-99693d39de7afd9465d1ec9190e03b447f602bd2.zip | |
Some docstring and error message adaptations to namespace changes.
Diffstat (limited to 'session.py')
| -rw-r--r-- | session.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -130,7 +130,7 @@ class Session: new_file.write("this session is running") def _register_session(self): - """Register session in RWA if not in mockup_session mode.""" + """Register session in RWA.Support.WebApp if not in mockup_session mode.""" if not self.mockup_session: try: r = requests.post( @@ -147,7 +147,7 @@ class Session: raise ConnectionError() logging.info( - f"The session has been registered in RWA with status code {r.status_code} and response {r.content.decode()}." + f"The session has been registered in RWA.Support.WebApp with status code {r.status_code} and response {r.content.decode()}." ) if r.status_code != 200: @@ -178,7 +178,7 @@ class Session: ) logging.info( - f"The session has received its status from RWA with status code {r.status_code} and response {r.content.decode()}." + f"The session has received its status from RWA.Support.WebApp with status code {r.status_code} and response {r.content.decode()}." ) if r.status_code in (401, 402, 403, 404, 405): @@ -214,7 +214,7 @@ class Session: headers=self._api_headers, ) logging.info( - f"The session has marked the job {job} as done in RWA with status code {r.status_code} and response {r.content.decode()}." + f"The session has marked the job {job} as done in RWA.Support.WebApp with status code {r.status_code} and response {r.content.decode()}." ) def push(self): @@ -255,7 +255,7 @@ class Session: STOP_URL, params={"id": self.session_id}, headers=self._api_headers ) logging.info( - f"The stop action has been registered in RWA with status code {r.status_code} and response {r.content.decode()}." + f"The stop action has been registered in RWA.Support.WebApp with status code {r.status_code} and response {r.content.decode()}." ) self.status_text = "stopped" |
