From 72382f7618963f4413aaf9deb71557ce09e4d981 Mon Sep 17 00:00:00 2001 From: aparriel Date: Wed, 31 May 2017 18:07:31 +0200 Subject: [PATCH] Fix missing %s in debug Missing %s in logger.debug call lead to error. --- pymisp/api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pymisp/api.py b/pymisp/api.py index d49cf4d..142bcba 100644 --- a/pymisp/api.py +++ b/pymisp/api.py @@ -774,8 +774,8 @@ class PyMISP(object): if controller not in ['events', 'attributes']: raise Exception('Invalid controller. Can only be {}'.format(', '.join(['events', 'attributes']))) url = urljoin(self.root_url, '{}/{}'.format(controller, path.lstrip('/'))) - logger.debug('URL: ', url) - logger.debug('Query: ', query) + logger.debug('URL: %s', url) + logger.debug('Query: %s', query) if ASYNC_OK and isinstance(session, FuturesSession) and async_callback: response = session.post(url, data=json.dumps(query), background_callback=async_callback) @@ -1468,7 +1468,7 @@ class PyMISP(object): session = self.__prepare_session() url = urljoin(self.root_url, "/events/stix/download/{}/{}/{}/{}/{}".format( event_id, with_attachments, tags, from_date, to_date)) - logger.debug("Getting STIX event from", url) + logger.debug("Getting STIX event from %s", url) response = session.get(url) return self._check_response(response)