fixed missing newline
included the error log
solved issue with race condition between init() and callback thread
updated code to finally include filtering on debug log