added the require for the logger
change a text.msg, text.error to Log.debug