Make addLogEntry independent of global var INFO

In stead use the type as provided to the function. Fixes #920
Merge pull request #923 from splitbrain/addLogEntry

Make addLogEntry independent of global var INFO