Log only in debug mode