Bug 1048140
| Summary: | Support logging XMLRPC method's namespace | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | cqi | ||||
| Component: | kobo | Assignee: | Daniel Mach <dmach> | ||||
| Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 22 | CC: | dmach | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2016-07-19 10:50:35 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle. Changing version to '22'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22 Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. |
Created attachment 844889 [details] git patch for supporting logging XMLRPC method's namespace XmlRpcLog.method only contains the method's name being call. However, it's not enough sometimes, especially to TCMS. TCMS exposes XMLRPC methods to external systems and standalone applications, such as lots of automation testing scrips. That methods contains get, filter, update and several other methods with same name defined in each module, TestPlan, TestCase, TestRun, etc. During the past maintenance of TCMS, developers and sys admins usually want to see a which module where a method is being called. But, there's no information from the log. This patch is solve this problem from the kobo side. Now, log_call decorator accepts an optional argument named namespace to allow developers to specify proper value according to their circumstances. For example, @log_call(namespace='testplan') def get(request, id): pass As a result, XmlRpcLog.method will contain testplan.get That's it. This small change will help TCMS developers to log more useful information of XMLRPC invocation. And also hope it could help other projects that need similar requirement.