Fix double logging debug