Update logginghelper.js

This is not right, there is no reason to exist if there is no error.