fix corrupted log messages in log file
authorDohyung Kim <dohyung2.kim@samsung.com>
Tue, 25 Apr 2017 07:36:43 +0000 (16:36 +0900)
committerxiaojuan.mao <xiaojuan.mao@samsung.com>
Thu, 13 Jul 2017 03:18:29 +0000 (11:18 +0800)
commit6db490fb8e3cda732a3f906471a9c12a041cf8c0
tree264c206f7d5244826da33afbbc77135617bee978
parent58861e311fe45272929b7db7939e76dba789a707
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