Skip to content

Commit dea39e5

Browse files
shaileshmishrashaileshmishra
authored andcommitted
Retry and logging
1 parent eae2fe3 commit dea39e5

File tree

7 files changed

+17
-3
lines changed

7 files changed

+17
-3
lines changed

contentstack/assetquery.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@
77
# Your code has been rated at 10/10 by pylint
88

99
import json
10+
import logging
1011

1112
from contentstack.basequery import BaseQuery
1213
from contentstack.utility import Utils
1314

15+
log = logging.getLogger(__name__)
16+
1417

1518
class AssetQuery(BaseQuery):
1619
"""

contentstack/basequery.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
Common Query for Entry and Assets
44
"""
55
import enum
6+
import logging
7+
8+
log = logging.getLogger(__name__)
69

710

811
# ************* Module basequery.py **************

contentstack/contenttype.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@
88
# ************* Module ContentType **************
99
# Your code has been rated at 10.00/10 by pylint
1010

11+
import logging
1112
from urllib import parse
1213

1314
from contentstack.entry import Entry
1415
from contentstack.query import Query
1516

17+
log = logging.getLogger(__name__)
1618

1719
class ContentType:
1820
"""

contentstack/entryqueryable.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
EntryQueryable class contains common functions
33
that is used as parents class for the query and entry classes
44
"""
5-
5+
import logging
66

77
# ************* Module EntryQueryable **************
88
# Your code has been rated at 10/10 by pylint
99

10+
log = logging.getLogger(__name__)
11+
1012

1113
class EntryQueryable:
1214
"""

contentstack/image_transform.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66
different transform_params in second parameter in array form
77
"""
88

9+
import logging
910

1011
# ************* Module image_transform **************
1112
# Your code has been rated at 10.00/10 by pylint
1213

14+
log = logging.getLogger(__name__)
1315

1416
class ImageTransform: # pylint: disable=too-few-public-methods
1517
"""

contentstack/utility.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
# ************* Module utility checked using pylint **************
99
# Your code has been rated at 10.00/10
1010

11-
1211
import json
1312
import logging
1413
from urllib import parse
1514

15+
log = logging.getLogger(__name__)
16+
1617

1718
def config_logging(logging_type: logging.WARNING):
1819
"""

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ setuptools~=51.0.0
88
wheel==0.35.1
99
urllib3==1.26.3
1010
utils==1.0.1
11-
twython==3.8.2
11+
twython==3.8.2
12+
Sphinx==3.5.1

0 commit comments

Comments
 (0)