From d51093bc30894bf3678177f4f93433c27df70ac3 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sun, 1 Jun 2025 20:53:21 +0200 Subject: [PATCH] Remove enterprise environment configuration logging --- app/MindWork AI Studio/Program.cs | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/app/MindWork AI Studio/Program.cs b/app/MindWork AI Studio/Program.cs index fb7654ea..85667ac9 100644 --- a/app/MindWork AI Studio/Program.cs +++ b/app/MindWork AI Studio/Program.cs @@ -210,30 +210,6 @@ internal sealed class Program await rust.AppIsReady(); programLogger.LogInformation("The AI Studio server is ready."); - // - // Read the enterprise environment for the current user's configuration: - // - var enterpriseConfigServerUrl = await RUST_SERVICE.EnterpriseEnvConfigServerUrl(); - var enterpriseConfigId = await RUST_SERVICE.EnterpriseEnvConfigId(); - switch (enterpriseConfigServerUrl) - { - case null when enterpriseConfigId == Guid.Empty: - programLogger.LogInformation("AI Studio runs without an enterprise configuration."); - break; - - case null: - programLogger.LogWarning($"AI Studio runs with an enterprise configuration id ('{enterpriseConfigId}'), but the configuration server URL is not set."); - break; - - case not null when enterpriseConfigId == Guid.Empty: - programLogger.LogWarning($"AI Studio runs with an enterprise configuration server URL ('{enterpriseConfigServerUrl}'), but the configuration ID is not set."); - break; - - default: - programLogger.LogInformation($"AI Studio runs with an enterprise configuration id ('{enterpriseConfigId}') and configuration server URL ('{enterpriseConfigServerUrl}')."); - break; - } - TaskScheduler.UnobservedTaskException += (sender, taskArgs) => { programLogger.LogError(taskArgs.Exception, $"Unobserved task exception by sender '{sender ?? "n/a"}'.");