fix log to mail
Merge remote-tracking branch 'origin/master'