More verbose rest_client logging

Bug #1089846 reported by Attila Fazekas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Fix Released
Medium
Attila Fazekas

Bug Description

When a test case fails we should see all related HTTP requests and responses.
The logcapturing can ensure we see them only on FAIL or ERROR.

They should be logged on TRACE or DEBUG level.

Large body:
Configurable what is considered as large body, by default limit should be 2048 byte.
The first bytes (would be nice to round it to valid utf8 characters when possible) should be displayed.
The full body checksum (for ex.:md5 or sha1) should be calculated and displayed.

All request/response headers should be displayed.

Revision history for this message
Jay Pipes (jaypipes) wrote :

++

summary: - Verbose rest_cleint logging
+ More verbose rest_client logging
Changed in tempest:
status: New → Triaged
importance: Undecided → Medium
Changed in tempest:
assignee: nobody → Attila Fazekas (afazekas)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tempest (master)

Fix proposed to branch: master
Review: https://review.openstack.org/20711

Changed in tempest:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tempest (master)

Reviewed: https://review.openstack.org/20711
Committed: http://github.com/openstack/tempest/commit/11d2a7788b4383592d0a0de5aa1400c8521103eb
Submitter: Jenkins
Branch: master

commit 11d2a7788b4383592d0a0de5aa1400c8521103eb
Author: Attila Fazekas <email address hidden>
Date: Tue Jan 29 17:46:52 2013 +0100

    Verbose logging on error

    * Create rest logger instance only once.
    * If the token does not seams special it is omitted.
    * The log level setting in tempest.conf has limitations in
      configuring log level, so it is removed for now.
    * No extra logging on error in any different log level.

    Bug: #1089846

    Change-Id: Ibd664520e81e072ea1040c47d0aeef4980903118

Changed in tempest:
status: In Progress → Fix Released
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.