Setting Debug and logs