Fixing type in log file
Fixing the null handler to stop log propagation