Check callback is a functionbefore calling
Merge pull request #7 from uber/logSafety

Check callback is a functionbefore calling