Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
ecommerce
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
ecommerce
Commits
f4bcdfc2
Commit
f4bcdfc2
authored
Jun 19, 2018
by
christopher lee
Committed by
Christopher Lee
Jun 19, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more details to debug_logging_for_get_basket_switch_data
parent
920e441e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
ecommerce/extensions/basket/utils.py
+10
-0
No files found.
ecommerce/extensions/basket/utils.py
View file @
f4bcdfc2
...
@@ -151,6 +151,16 @@ def get_basket_switch_data(product):
...
@@ -151,6 +151,16 @@ def get_basket_switch_data(product):
break
break
if
waffle
.
switch_is_active
(
"debug_logging_for_get_basket_switch_data"
):
# pragma: no cover
if
waffle
.
switch_is_active
(
"debug_logging_for_get_basket_switch_data"
):
# pragma: no cover
msg
=
"get_basket_switch_data: product.course_id={}, product.product_class.name={}, structure={}, "
\
"partner_sku={}, product_cert_type={}, product_seat_type={}"
.
format
(
product
.
course_id
,
product
.
product_class
.
name
,
structure
,
partner_sku
,
product_cert_type
,
product_seat_type
)
logger
.
info
(
msg
)
if
product
.
course_id
is
None
:
if
product
.
course_id
is
None
:
if
partner_sku
is
not
None
:
if
partner_sku
is
not
None
:
logger
.
info
(
"get_basket_switch_data: product.course_id is None. partner_sku has been set"
)
logger
.
info
(
"get_basket_switch_data: product.course_id is None. partner_sku has been set"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment