fixed openlog()
Merge branch 'develop'