[BUGFIX] Do not gather log info in DataHandler if logging is disabled