← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1040772] Re: Tweak logging of process id

 

** Changed in: glance
       Status: Fix Committed => Fix Released

** Changed in: glance
    Milestone: None => juno-rc1

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1040772

Title:
  Tweak logging of process id

Status in OpenStack Image Registry and Delivery Service (Glance):
  Fix Released
Status in OpenStack Compute (Nova):
  Fix Released
Status in openstack-common:
  Fix Released

Bug description:
  I'd like to suggest tweaking how we log process id.

  Currently the log looks like:

  
  2012-08-21 12:16:36 DEBUG glance.store [-] Attempting to import store glance.store.filesystem.Store from (pid=16913) _get_store_class /usr/lib/python2.7/dist-packages/glance/store/__init__.py:146
  2012-08-21 12:16:36 DEBUG glance.store [-] Registering store <class 'glance.store.filesystem.Store'> with schemes ('file', 'filesystem') from (pid=16913) create_stores /usr/lib/python2.7/dist-packages/glance/store/__init__.py:176
  2012-08-21 12:16:36 DEBUG glance.store.base [-] Late loading location class glance.store.filesystem.StoreLocation from (pid=16913) get_store_location_class /usr/lib/python2.7/dist-packages/glance/store/base.py:68

  I find it tricky to see if these are from the same process on the
  server or not.

  Tweaking to be in a fixed position like:

  2012-08-23 16:40:48 DEBUG 11141 glance.api.middleware.version_negotiation [-] Using url versioning process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:55
  2012-08-23 16:40:48 DEBUG 11141 glance.api.middleware.version_negotiation [-] Matched version: v1 process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:67
  2012-08-23 16:40:48 DEBUG 11141 glance.api.middleware.version_negotiation [-] new uri /v1/images/48fb03f5-2dfe-4a6e-8b60-8260158edb72 process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:68

  makes it easier to track which requests are being handled by which
  processes.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1040772/+subscriptions