Skip to content

Commit

Permalink
Correct recipe for network logs using incorrect level value (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
Delgan authored Sep 29, 2020
1 parent fe2f34d commit 93f1990
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/resources/recipes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ This can be achieved using a custom sink for the client and |patch| for the serv
while len(chunk) < slen:
chunk = chunk + self.connection.recv(slen - len(chunk))
record = pickle.loads(chunk)
level, message = record["level"], record["message"]
level, message = record["level"].no, record["message"]
logger.patch(lambda record: record.update(record)).log(level, message)
server = socketserver.TCPServer(('localhost', 9999), LoggingStreamHandler)
Expand Down

0 comments on commit 93f1990

Please sign in to comment.