Skip to content

Commit

Permalink
Merge pull request #2000 from openedx/hamza/ENT-8276-add-logs
Browse files Browse the repository at this point in the history
feat: add logs to see values
  • Loading branch information
hamzawaleed01 committed Jan 24, 2024
2 parents e26205b + b043645 commit 6e66464
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ Change Log
Unreleased
----------

[4.10.9]
--------

feat: added logs temporarily for ENT-8276

[4.10.8]
--------

Expand Down
2 changes: 1 addition & 1 deletion enterprise/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Your project description goes here.
"""

__version__ = "4.10.8"
__version__ = "4.10.9"
9 changes: 8 additions & 1 deletion integrated_channels/cornerstone/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,5 +156,12 @@ def get(self, request, *args, **kwargs):
f'fixing modified/header mismatch')
if_modified_since_dt = datetime.datetime.fromtimestamp(if_modified_since)
item['LastModifiedUTC'] = if_modified_since_dt.strftime(ISO_8601_DATE_FORMAT)

# TODO remove following logs (temporarily added)
logger.info(
f"[Cornerstone]: request.headers={request.headers}"
f"GET params={request.GET}"
f"enterprise_config={enterprise_config}"
f"enterprise_config.id={enterprise_config.id}"
f"data={data}"
)
return Response(data)

0 comments on commit 6e66464

Please sign in to comment.