Skip to content

Commit

Permalink
Merge pull request #25 from itolosa/patch-1
Browse files Browse the repository at this point in the history
Fix using root logger
  • Loading branch information
syrusakbary committed Jan 18, 2018
2 parents 4193ace + 21d581e commit 3653bb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gql/client.py
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 3653bb5

Please sign in to comment.