Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- log = logging.getLogger(__name__)
- handler = logging.StreamHandler(sys.stdout)
- handler.setLevel(logging.INFO)
- log.setLevel(logging.INFO)
- log.addHandler(handler)
- class Connection():
- def __init__(self, user, password):
- self.token = request_authentication_token("jakiw", "111")
- if(self.token == -1):
- log.debug("Error: Authentication failed.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement