log host on error

This commit is contained in:
Max Peintner
2025-01-16 10:42:15 +01:00
parent 89dcce193f
commit bb6c6375fe

View File

@@ -25,7 +25,7 @@ export async function createServiceForHost<T extends ServiceClass>(
instanceUrl = await getInstanceUrl(host);
} catch (error) {
console.error(
"Could not get instance url, fallback to ZITADEL_API_URL",
`Could not get instance url for ${host}, fallback to ZITADEL_API_URL`,
error,
);
instanceUrl = process.env.ZITADEL_API_URL;