Add some logs in try/catch