Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-redfish for openSUSE:Factory 
checked in at 2024-12-29 11:56:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-redfish (Old)
 and      /work/SRC/openSUSE:Factory/.python-redfish.new.1881 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-redfish"

Sun Dec 29 11:56:49 2024 rev:18 rq:1233505 version:3.2.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-redfish/python-redfish.changes    
2024-11-18 20:01:38.782226208 +0100
+++ /work/SRC/openSUSE:Factory/.python-redfish.new.1881/python-redfish.changes  
2024-12-29 11:57:04.569252896 +0100
@@ -1,0 +2,6 @@
+Tue Dec 24 07:36:31 UTC 2024 - Martin Hauke <mar...@gmx.de>
+
+- Update to version 3.2.7
+  * Added JSON formatting of responses to debug logs
+
+-------------------------------------------------------------------

Old:
----
  redfish-3.2.6.tar.gz

New:
----
  redfish-3.2.7.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-redfish.spec ++++++
--- /var/tmp/diff_new_pack.OS0uGp/_old  2024-12-29 11:57:05.013271104 +0100
+++ /var/tmp/diff_new_pack.OS0uGp/_new  2024-12-29 11:57:05.017271268 +0100
@@ -18,7 +18,7 @@
 
 
 Name:           python-redfish
-Version:        3.2.6
+Version:        3.2.7
 Release:        0
 Summary:        Redfish Python Library
 License:        BSD-3-Clause

++++++ redfish-3.2.6.tar.gz -> redfish-3.2.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-redfish-library-3.2.6/CHANGELOG.md 
new/python-redfish-library-3.2.7/CHANGELOG.md
--- old/python-redfish-library-3.2.6/CHANGELOG.md       2024-11-15 
21:11:34.000000000 +0100
+++ new/python-redfish-library-3.2.7/CHANGELOG.md       2024-12-24 
01:50:21.000000000 +0100
@@ -1,5 +1,8 @@
 # Change Log
 
+## [3.2.7] - 2024-12-24
+- Added JSON formatting of responses to debug logs
+
 ## [3.2.6] - 2024-11-15
 - Added workaround for services incorrectly responding with 401 when accessing 
the service root
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-redfish-library-3.2.6/setup.py 
new/python-redfish-library-3.2.7/setup.py
--- old/python-redfish-library-3.2.6/setup.py   2024-11-15 21:11:34.000000000 
+0100
+++ new/python-redfish-library-3.2.7/setup.py   2024-12-24 01:50:21.000000000 
+0100
@@ -12,7 +12,7 @@
     long_description = f.read()
 
 setup(name='redfish',
-      version='3.2.6',
+      version='3.2.7',
       description='Redfish Python Library',
       long_description=long_description,
       long_description_content_type='text/x-rst',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-redfish-library-3.2.6/src/redfish/__init__.py 
new/python-redfish-library-3.2.7/src/redfish/__init__.py
--- old/python-redfish-library-3.2.6/src/redfish/__init__.py    2024-11-15 
21:11:34.000000000 +0100
+++ new/python-redfish-library-3.2.7/src/redfish/__init__.py    2024-12-24 
01:50:21.000000000 +0100
@@ -6,7 +6,7 @@
 """ Redfish restful library """
 
 __all__ = ['rest', 'ris', 'discovery', 'messages']
-__version__ = "3.2.6"
+__version__ = "3.2.7"
 
 from redfish.rest.v1 import redfish_client
 from redfish.rest.v1 import AuthMethod
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-redfish-library-3.2.6/src/redfish/rest/v1.py 
new/python-redfish-library-3.2.7/src/redfish/rest/v1.py
--- old/python-redfish-library-3.2.6/src/redfish/rest/v1.py     2024-11-15 
21:11:34.000000000 +0100
+++ new/python-redfish-library-3.2.7/src/redfish/rest/v1.py     2024-12-24 
01:50:21.000000000 +0100
@@ -950,12 +950,16 @@
                         headerstr += '\t' + header[0] + ': ' + header[1] + '\n'
 
                     try:
+                        try:
+                            restrespstr = 
json.dumps(json.loads(restresp.read), indent=4)
+                        except:
+                            restrespstr = restresp.read
                         LOGGER.debug('HTTP RESPONSE for %s:\nCode: 
%s\n\nHeaders:\n' \
-                                 '%s\nBody Response of %s: %s\n'%\
+                                 '%s\nBody Response of %s:\n%s\n'%\
                                  (restresp.request.path,
                                 str(restresp._http_response.status_code)+ ' ' 
+ \
                                 restresp._http_response.reason,
-                                headerstr, restresp.request.path, 
restresp.read))
+                                headerstr, restresp.request.path, restrespstr))
                     except:
                         LOGGER.debug('HTTP RESPONSE:\nCode:%s', restresp)
                 else:

Reply via email to