HOW TO DEAL WITH IF LOGS ARE NOT DISPLAYED BY DEBUG FUNCTION