swift-account-info and swift-container-info don't set up any loggers

Bug #1555267 reported by Tim Burke
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Confirmed
Low
Unassigned

Bug Description

Neither swift-account-info nor swift-container-info set up any loggers, which can cause

  No handlers could be found for logger "root"

errors to appear. We should actually send logging output somewhere, likely to stderr. Note that other CLI utils are likely affected.

Revision history for this message
Tim Burke (1-tim-z) wrote :

Note that you need to hit a situation that would trigger logging. I've seen this with, for instance:

  echo foo >> $ACCT_DB_FILE.pending
  swift-account-info $ACCT_DB_FILE

The message that should have been logged (https://github.com/openstack/swift/blob/2.14.0/swift/common/db.py#L615-L617) seems to just get dropped.

Changed in swift:
status: New → Confirmed
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.