Skip to content

Commit 7bbdc79

Browse files
committed
ISSUE-80: Add psycopg2 to NO_DOUBLE_PATCH
1 parent 609c0f0 commit 7bbdc79

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

aws_xray_sdk/core/patcher.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
'mysql',
1111
'httplib',
1212
'pymongo',
13-
'psycopg2'
13+
'psycopg2',
1414
)
1515

1616
NO_DOUBLE_PATCH = (
@@ -19,6 +19,7 @@
1919
'sqlite3',
2020
'mysql',
2121
'pymongo',
22+
'psycopg2',
2223
)
2324

2425
_PATCHED_MODULES = set()
@@ -34,6 +35,7 @@ def patch_all(double_patch=False):
3435
def patch(modules_to_patch, raise_errors=True):
3536
modules = set()
3637
for module_to_patch in modules_to_patch:
38+
print('adding {}'.format(module_to_patch))
3739
# boto3 depends on botocore and patching botocore is sufficient
3840
if module_to_patch == 'boto3':
3941
modules.add('botocore')
@@ -65,7 +67,7 @@ def _patch_module(module_to_patch, raise_errors=True):
6567

6668

6769
def _patch(module_to_patch):
68-
70+
print('patching {}'.format(module_to_patch))
6971
path = 'aws_xray_sdk.ext.%s' % module_to_patch
7072

7173
if module_to_patch in _PATCHED_MODULES:

0 commit comments

Comments
 (0)