Better log error checks
Add security to test module
Merge pull request #82 from dreispt/better-log-checks

Better log error checks