Skip to content

Commit

Permalink
Remove %()s from logging formats
Browse files Browse the repository at this point in the history
  • Loading branch information
bcb committed Nov 17, 2015
1 parent 00d14d4 commit 925dd46
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
16 changes: 8 additions & 8 deletions doc/http.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,17 @@ Logging

The request format has these fields:

:%(endpoint)s: The server endpoint, eg. ``http://example.com/api``.
:%(http_headers)s: The full HTTP headers.
:%(message)s: The JSON request (the body).
:endpoint: The server endpoint, eg. ``http://example.com/api``.
:http_headers: The full HTTP headers.
:message: The JSON request (the body).

The response format has these fields:

:%(endpoint)s: The server endpoint, eg. ``http://example.com/api``.
:%(http_code)d: The HTTP status code received from the server, eg. ``400``.
:%(http_reason)s: The description of the status code, eg. ``BAD REQUEST``.
:%(http_headers)s: The full HTTP headers.
:%(message)s: The JSON response (the body).
:endpoint: The server endpoint, eg. ``http://example.com/api``.
:http_code: The HTTP status code received from the server, eg. ``400``.
:http_reason: The description of the status code, eg. ``BAD REQUEST``.
:http_headers: The full HTTP headers.
:message: The JSON response (the body).

Examples
========
Expand Down
14 changes: 4 additions & 10 deletions doc/zeromq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,13 @@ Logging

The request format has these fields:

%(endpoint)s
The server endpoint, eg. ``http://localhost:5555``.

%(message)s
The JSON request (the body).
:endpoint: The server endpoint, eg. ``http://localhost:5555``.
:message: The JSON request (the body).

The response format has these fields:

%(endpoint)s
The server endpoint, eg. ``http://localhost:5555``.

%(message)s
The JSON response (the body).
:endpoint: The server endpoint, eg. ``http://localhost:5555``.
:message: The JSON response (the body).

Examples
========
Expand Down

0 comments on commit 925dd46

Please sign in to comment.