From 9400e5e7b0261c0dff8e54218bacd47bfa336cf9 Mon Sep 17 00:00:00 2001 From: hyugogirubato <65763543+hyugogirubato@users.noreply.github.com> Date: Sun, 7 Jul 2024 16:26:32 +0200 Subject: [PATCH] Refined usage of function --- keydive/cdm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/keydive/cdm.py b/keydive/cdm.py index 852fa84..32fb2d8 100644 --- a/keydive/cdm.py +++ b/keydive/cdm.py @@ -78,7 +78,7 @@ class Cdm: client_id: ClientIdentification = license_request.client_id self.set_client_id(data=client_id) except Exception as e: - self.logger.error('Error parsing challenge: %s', e) + self.logger.warning('Failed to set challenge data: %s', e) def set_private_key(self, data: bytes) -> None: """ @@ -93,7 +93,7 @@ class Cdm: self.logger.debug('Receive private key: \n\n%s\n', key.exportKey('PEM').decode('utf-8')) self.private_key[key.n] = key except Exception as e: - self.logger.error('Error parsing private key: %s', e) + self.logger.warning('Failed to set private key: %s', e) def set_client_id(self, data: Union[ClientIdentification, bytes]) -> None: """ @@ -122,7 +122,7 @@ class Cdm: self.logger.debug('Receive client id: \n\n%s\n', json.dumps(self.__client_info(client_id), indent=2)) self.client_id[key.n] = client_id except Exception as e: - self.logger.error('Error parsing client ID: %s', e) + self.logger.warning('Failed to set client ID: %s', e) def export(self, parent: Path, wvd: bool = False) -> bool: """