Bug 883462 - RFE: add bindings for CMTraceMessage
Summary: RFE: add bindings for CMTraceMessage
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: cmpi-bindings
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vitezslav Crhonek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-04 16:36 UTC by Jan Safranek
Modified: 2013-01-23 02:09 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-01-23 02:09:47 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
proposed patch (1.99 KB, patch)
2012-12-04 16:36 UTC, Jan Safranek
no flags Details | Diff
proposed patch (3.06 KB, patch)
2012-12-05 08:53 UTC, Jan Safranek
no flags Details | Diff

Description Jan Safranek 2012-12-04 16:36:12 UTC
Created attachment 657637 [details]
proposed patch

CMPI has functions for logging (CMLogMessage) and for tracing (CMTraceMessage).
The tracing is not implemented in cmpi-bindings-pywbem.

Attached patch adds trace_* methods to Logger. A provider can use it as follows:
logger = env.get_logger()
logger.trace_info(__name__, "Tracing something useful")

Comment 1 Jan Safranek 2012-12-05 08:53:02 UTC
Created attachment 658059 [details]
proposed patch

Attaching better patch, this version works with SFCB.

SFCB does not support tracing, therefore appropriate python functions fall back to log_debug.

Comment 2 Jan Safranek 2012-12-20 08:59:32 UTC
Patch sent upstream: http://sourceforge.net/mailarchive/message.php?msg_id=30250417

Comment 3 Fedora Update System 2013-01-10 13:37:34 UTC
cmpi-bindings-0.5.2-3.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/cmpi-bindings-0.5.2-3.fc18

Comment 4 Fedora Update System 2013-01-10 21:28:28 UTC
Package cmpi-bindings-0.5.2-3.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing cmpi-bindings-0.5.2-3.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-0570/cmpi-bindings-0.5.2-3.fc18
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-01-23 02:09:48 UTC
cmpi-bindings-0.5.2-3.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.