Fixed error logging.
Merge remote-tracking branch 'origin/dev'