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 627532 Details for
Bug 866557
Some error messages logged should probably be warnings
[?]
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]
Sample patch of the changes.
bz.diffs (text/plain), 3.34 KB, created by
Peter Portante
on 2012-10-15 15:44:44 UTC
(
hide
)
Description:
Sample patch of the changes.
Filename:
MIME Type:
Creator:
Peter Portante
Created:
2012-10-15 15:44:44 UTC
Size:
3.34 KB
patch
obsolete
>diff --git a/swift/1.4.8/plugins/utils.py b/swift/1.4.8/plugins/utils.py >index d8fc7a4..8d69233 100644 >--- a/swift/1.4.8/plugins/utils.py >+++ b/swift/1.4.8/plugins/utils.py >@@ -344,7 +344,7 @@ def check_valid_account(account, fs_object): > > def validate_container(metadata): > if not metadata: >- logging.error('No metadata') >+ logging.warn('validate_container: No metadata') > return False > > if X_TYPE not in metadata.keys() or \ >@@ -352,18 +352,18 @@ def validate_container(metadata): > X_PUT_TIMESTAMP not in metadata.keys() or \ > X_OBJECTS_COUNT not in metadata.keys() or \ > X_BYTES_USED not in metadata.keys(): >- #logging.error('Container error %s' % metadata) >+ #logging.warn('validate_container: Metadata missing entries: %s' % metadata) > return False > > if metadata[X_TYPE] == CONTAINER: > return True > >- logging.error('Container error %s' % metadata) >+ logging.warn('validate_container: metadata type is not CONTAINER (%r)' % (value,)) > return False > > def validate_account(metadata): > if not metadata: >- logging.error('No metadata') >+ logging.warn('validate_account: No metadata') > return False > > if X_TYPE not in metadata.keys() or \ >@@ -372,18 +372,18 @@ def validate_account(metadata): > X_OBJECTS_COUNT not in metadata.keys() or \ > X_BYTES_USED not in metadata.keys() or \ > X_CONTAINER_COUNT not in metadata.keys(): >- #logging.error('Account error %s' % metadata) >+ #logging.warn('validate_account: Metadata missing entries: %s' % metadata) > return False > > if metadata[X_TYPE] == ACCOUNT: > return True > >- logging.error('Account error %s' % metadata) >+ logging.warn('validate_account: metadata type is not ACCOUNT (%r)' % (value,)) > return False > > def validate_object(metadata): > if not metadata: >- logging.error('No metadata') >+ logging.warn('validate_object: No metadata') > return False > > if X_TIMESTAMP not in metadata.keys() or \ >@@ -392,22 +392,22 @@ def validate_object(metadata): > X_CONTENT_LENGTH not in metadata.keys() or \ > X_TYPE not in metadata.keys() or \ > X_OBJECT_TYPE not in metadata.keys(): >- #logging.error('Object error %s' % metadata) >+ #logging.warn('validate_object: Metadata missing entries: %s' % metadata) > return False > > if metadata[X_TYPE] == OBJECT: > return True > >- logging.error('Object error %s' % metadata) >+ logging.warn('validate_object: metadata type is not OBJECT (%r)' % (metadata[X_TYPE],)) > return False > > def is_marker(metadata): > if not metadata: >- logging.error('No metadata') >+ logging.warn('is_marker: No metadata') > return False > > if X_OBJECT_TYPE not in metadata.keys(): >- logging.error('X_OBJECT_TYPE missing %s' % metadata) >+ logging.warn('is_marker: X_OBJECT_TYPE missing from metadata: %s' % metadata) > return False > > if metadata[X_OBJECT_TYPE] == MARKER_DIR: >@@ -662,7 +662,7 @@ def create_account_metadata(acc_path, memcache=None): > > def check_account_exists(account, fs_object): > if account not in get_account_list(fs_object): >- logging.error('Account not exists %s' % account) >+ logging.warn('Account %s does not exist' % account) > return False > else: > return True
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 866557
: 627532