Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 657637 Details for
Bug 883462
RFE: add bindings for CMTraceMessage
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
proposed patch
pywbem-trace.patch (text/plain), 1.99 KB, created by
Jan Safranek
on 2012-12-04 16:36:12 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Jan Safranek
Created:
2012-12-04 16:36:12 UTC
Size:
1.99 KB
patch
obsolete
>diff -up cmpi-bindings-0.5.2/swig/cmpi_callbacks.i.trace cmpi-bindings-0.5.2/swig/cmpi_callbacks.i >--- cmpi-bindings-0.5.2/swig/cmpi_callbacks.i.trace 2012-12-04 17:09:30.803997498 +0100 >+++ cmpi-bindings-0.5.2/swig/cmpi_callbacks.i 2012-12-04 17:09:04.000000000 +0100 >@@ -44,6 +44,14 @@ typedef struct _CMPIBroker {} CMPIBroker > RAISE_IF(CMLogMessage($self, severity, id, text, NULL)); > } > >+ void TraceMessage( >+ int severity, >+ const char *component, >+ const char *text) >+ { >+ RAISE_IF(CMTraceMessage($self, severity, component, text, NULL)); >+ } >+ > int version() > { > return CBBrokerVersion($self); >diff -up cmpi-bindings-0.5.2/swig/python/cmpi_pywbem_bindings.py.trace cmpi-bindings-0.5.2/swig/python/cmpi_pywbem_bindings.py >--- cmpi-bindings-0.5.2/swig/python/cmpi_pywbem_bindings.py.trace 2012-12-04 17:09:20.532038385 +0100 >+++ cmpi-bindings-0.5.2/swig/python/cmpi_pywbem_bindings.py 2012-12-04 17:10:44.147704249 +0100 >@@ -396,6 +396,8 @@ class Logger(object): > if e.get_error_code() == cmpi.CMPI_RC_ERR_NOT_SUPPORTED: > syslog.syslog(syslog.LOG_DAEMON | _log_pri_map[severity], > '%s: %s' % (self.miname, msg)) >+ def __trace_message(self, severity, component, msg): >+ self.broker.TraceMessage(severity, component, msg); > def log_error(self, msg): > self.__log_message(cmpi.CMPI_SEV_ERROR, msg); > def log_info(self, msg): >@@ -404,6 +406,12 @@ class Logger(object): > self.__log_message(cmpi.CMPI_SEV_WARNING, msg); > def log_debug(self, msg): > self.__log_message(cmpi.CMPI_DEV_DEBUG, msg); >+ def trace_verbose(self, component, msg): >+ self.__trace_message(cmpi.CMPI_LEV_VERBOSE, component, msg) >+ def trace_info(self, component, msg): >+ self.__trace_message(cmpi.CMPI_LEV_INFO, component, msg) >+ def trace_warn(self, component, msg): >+ self.__trace_message(cmpi.CMPI_LEV_WARNING, component, msg) > > class ProviderEnvironment(object): > def __init__(self, proxy, ctx):
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 883462
:
657637
|
658059