fixed logging to not be blocking and wasteful on datastore operations
Merge pull request #1397 from nlake44/thread-log-post

fixed logging to not be blocking and wasteful on datastore operations
Merge remote-tracking branch: upstream/master