Skip to content

Commit

Permalink
Fix log message in case of interactive login
Browse files Browse the repository at this point in the history
  • Loading branch information
JureZmrzlikar committed Nov 10, 2023
1 parent e71a342 commit ee27284
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/resdk/resolwe.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,10 +526,10 @@ def __init__(

if username and password:
self.cookies = self.automatic_login(username, password)
self.logger.info(f"Successfully logged in as {username}.")
else:
self.cookies = self.interactive_login()

self.logger.info(f"Successfully logged in as {username}.")
self.logger.info("Successfully logged in.")

def automatic_login(self, username: str, password: str) -> AuthCookie:
"""Attempt to perform automatic SAML login.
Expand Down

0 comments on commit ee27284

Please sign in to comment.