Skip to content

Commit

Permalink
Fix using root logger
Browse files Browse the repository at this point in the history
  • Loading branch information
itolosa authored Jan 14, 2018
1 parent 4193ace commit 21d581e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gql/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from .transport.local_schema import LocalSchemaTransport

log = logging.getLogger(__name__)

class RetryError(Exception):
"""Custom exception thrown when retry logic fails"""
Expand Down Expand Up @@ -65,7 +66,7 @@ def _get_result(self, document, *args, **kwargs):
return result
except Exception as e:
last_exception = e
logging.warn("Request failed with exception %s. Retrying for the %s time...",
log.warn("Request failed with exception %s. Retrying for the %s time...",
e, retries_count + 1, exc_info=True)
finally:
retries_count += 1
Expand Down

0 comments on commit 21d581e

Please sign in to comment.