fix corrupted log messages in log file 90/126990/1
authorDohyung Kim <dohyung2.kim@samsung.com>
Tue, 25 Apr 2017 07:36:43 +0000 (16:36 +0900)
committerDohyung Kim <dohyung2.kim@samsung.com>
Tue, 25 Apr 2017 12:26:06 +0000 (21:26 +0900)
commit21257f6312ae9785af31aa3b2bcd2719300c5324
tree8162291967d4ec8159270179b6ecb599a0ac7466
parent2ce0d14dd4a06d4e487bf1d2505de9e94f70c994
fix corrupted log messages in log file

os.ftruncate() won't reset the file pointer
os.lseek(fd, 0, os.SEEK_SET) is needed after os.ftruncate(fd, 0)

Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
Change-Id: I94bdd3993afccee2ea2d8903aa29505fec13c957
mic/msger.py