debug logging directory check