Print debugging logs dpendending on a input flag

LOGD prints logs only when en_debug_log is set by the user