import sys

file_name = sys.argv[1]
with open(file_name, "r") as fp:
    lines = fp.readlines()
    for line in lines:
        if "TMS" in line:
            new_line = '            LOG.info("{}")'.format(line.strip())
            print new_line
        if line:
            print line.strip("\n")


406b361f4925b7eb0e6254e74c756888058e21c9
import sys

file_name = sys.argv[1]
with open(file_name, "r") as fp:
    lines = fp.readlines()
    for line in lines:
        if "TMS" in line:
            new_line = '            LOG.info("{}")'.format(line.strip())
            print new_line
        if line:
            print line.strip("\n")

