This is an automated email from the ASF dual-hosted git repository.

nicknezis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git


The following commit(s) were added to refs/heads/master by this push:
     new 48911ae  Updated to fix missing anticrlf dependency in Heron shell 
process. (#3749)
48911ae is described below

commit 48911ae338e9691848b318bf6141b5ef77781c7b
Author: Nicholas Nezis <[email protected]>
AuthorDate: Sun Dec 19 00:54:36 2021 -0500

    Updated to fix missing anticrlf dependency in Heron shell process. (#3749)
---
 heron/shell/src/python/BUILD                       | 1 +
 heron/shell/src/python/handlers/downloadhandler.py | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/heron/shell/src/python/BUILD b/heron/shell/src/python/BUILD
index 52cf78d..106c0a3 100644
--- a/heron/shell/src/python/BUILD
+++ b/heron/shell/src/python/BUILD
@@ -6,6 +6,7 @@ pex_library(
         ["**/*.py"],
     ),
     reqs = [
+        "logging-formatter-anticrlf==1.2",
         "requests==2.12.3",
         "tornado==4.5.3",
     ],
diff --git a/heron/shell/src/python/handlers/downloadhandler.py 
b/heron/shell/src/python/handlers/downloadhandler.py
index 806f552..3186253 100644
--- a/heron/shell/src/python/handlers/downloadhandler.py
+++ b/heron/shell/src/python/handlers/downloadhandler.py
@@ -23,6 +23,7 @@
 import os
 import logging
 import tornado.web
+import anticrlf
 
 from heron.shell.src.python import utils
 
@@ -35,7 +36,7 @@ class DownloadHandler(tornado.web.RequestHandler):
     """ get method """
 
     handler = logging.StreamHandler()
-    
handler.setFormatter(logging.Formatter('%(levelname)s:%(name)s:%(message)s'))
+    
handler.setFormatter(anticrlf.LogFormatter('%(levelname)s:%(name)s:%(message)s'))
     logger = logging.getLogger(__name__)
     logger.addHandler(handler)
     logger.setLevel(logging.DEBUG)

Reply via email to