add log to debug