kurtqq commented on a change in pull request #3992: [AIRFLOW-620] Feature to 
tail custom number of logs instead of rendering whole log
URL: https://github.com/apache/airflow/pull/3992#discussion_r287567614
 
 

 ##########
 File path: airflow/utils/helpers.py
 ##########
 @@ -334,7 +334,7 @@ def get_byte_range_file(fl, num_bytes):
         if current_position == 0:
             return None
         fl.seek(-num_bytes, os.SEEK_CUR)
-        data = str(fl.read(num_bytes), 'utf-8', 'ignore')
+        data = fl.read(num_bytes).decode('utf-8')
 
 Review comment:
   There is no need for Python2.7 support. It has been removed from the master 
branch

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to