Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add logs to see values #2000

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enterprise_config will not return the complete object except the str defined to return at the model level. will that fulfill your needs or you want to see the complete object?

Copy link
Member Author

@hamzawaleed01 hamzawaleed01 Jan 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ops, I was supposed to add a separate log for enterprise_config.id 😮‍💨 THANK YOU!

f"enterprise_config.id={enterprise_config.id}"
f"data={data}"
)
return Response(data)
Loading