-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved logging for POST with file-like objects
Details: * If the Partition.mount_iso_image() method is called with a file-like object as the imagefile parameter, the hmc=debug log showed the content length as the length of the string that indicated that a file-like object was passed. This change improves that by showing a length of -1 and the logged string now also shows the file mode. * As an additional safety measure, changed the Unicode decoding in the logging function to use errors='ignore' instead of the default errors='strict', so that a unicode error in logging is not causing a secondary exception to be raised. Signed-off-by: Andreas Maier <[email protected]>
- Loading branch information
1 parent
00da085
commit 32a73e1
Showing
2 changed files
with
28 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters