praekeltfoundation / vumi-wikipedia

Vumi Wikipedia Application
BSD 3-Clause "New" or "Revised" License
8 stars 8 forks source link

Line Breaks inserted in the logs #29

Closed nyurik closed 10 years ago

nyurik commented 10 years ago

Log files sometimes contain unexpected line breaks (LFs), usually in this form. Note the \t and \n that i inserted. I think we should somehow escape \n, such as each_value.replace('\n', ' ').trim(). Or maybe replace('\n', '\r')? Although later might not be handled correctly by various readline() methods.

2013-10-10 04:59:24+0000 [VumiRedis,client] WIKI 5XXXd airtel_ke_sms_transport sms more-no-session\t\n \tASSETS

2013-10-28 07:17:23+0000 [HTTP11ClientProtocol,client] WIKI 5XXXd airtel_ke_sms_transport sms smscontent\t\n \t7660 content=u'...' more=False

smn commented 10 years ago

:+1: