From c93f8059f93d916c28ab308cf238cf920ea0f34a Mon Sep 17 00:00:00 2001 From: andreas128 Date: Fri, 1 Sep 2017 18:20:06 +0200 Subject: Change logging format --- dpd/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dpd/main.py') diff --git a/dpd/main.py b/dpd/main.py index e68b29c..cfd8126 100755 --- a/dpd/main.py +++ b/dpd/main.py @@ -27,7 +27,7 @@ logging.basicConfig(format='%(asctime)s - %(module)s - %(levelname)s - %(message console = logging.StreamHandler() console.setLevel(logging.INFO) # set a format which is simpler for console use -formatter = logging.Formatter('%(name)-12s: %(levelname)-8s %(message)s') +formatter = logging.Formatter('%(asctime)s - %(module)s - %(levelname)s - %(message)s') # tell the handler to use this format console.setFormatter(formatter) # add the handler to the root logger -- cgit v1.2.3