Make addLogEntry independent of global var INFO

In stead use the type as provided to the function. Fixes #920