Skip to content

improve log message on request error #8

@WindzCUHK

Description

@WindzCUHK

wanted changes

  • log extra information (request URL, source & destination IP, etc.) to help debugging
    if !strings.Contains(err.Error(), ErrMsgUnverified) {
    glg.Warn("handleError: " + err.Error())
    status = http.StatusBadGateway
    }

current log output on network error (max connection reached, etc.)

[WARN]:	handleError: EOF
[WARN]:	handleError: read tcp [::1]:12345->[::1]:8080: read: connection reset by peer

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions