From e5dca2930c733cf77a870ead31fc17ff42499343 Mon Sep 17 00:00:00 2001 From: Masahiro Nakagawa Date: Tue, 20 Sep 2016 19:05:59 +0900 Subject: [PATCH] Make FluentRecordFormatter python 3.2 logging.Formatter compatible. fix #63 --- fluent/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fluent/handler.py b/fluent/handler.py index c6c34e5..1e06e08 100644 --- a/fluent/handler.py +++ b/fluent/handler.py @@ -24,7 +24,7 @@ class FluentRecordFormatter(logging.Formatter, object): :param fmt: a dict with format string as values to map to provided keys. """ - def __init__(self, fmt=None, datefmt=None): + def __init__(self, fmt=None, datefmt=None, style='%'): super(FluentRecordFormatter, self).__init__(None, datefmt) if not fmt: