Skip to content

Commit cd2f0e5

Browse files
Add faulted svc config info in challenge server
1 parent c035c68 commit cd2f0e5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Certify.CLI/Program.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,11 @@ private static async Task<int> StartHttpChallengeServer(string[] args)
218218
var challengeServer = new Core.Management.Challenges.HttpChallengeServer();
219219
var config = SharedUtils.ServiceConfigManager.GetAppServiceConfig();
220220

221+
if (config.ConfigStatus == Shared.ConfigStatus.DefaultFailed)
222+
{
223+
System.Console.WriteLine($"Error: faulted load service config: {config.ServiceFaultMsg}");
224+
}
225+
221226
if (!challengeServer.Start(config, controlKey: keys[0], checkKey: keys[1]))
222227
{
223228
// failed to start http challenge server

src/Certify.Shared/Utils/HttpChallengeServer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public bool Start(ServiceConfig serverConfig, string controlKey = null, string c
146146

147147
Log($"Http Challenge Server Started: {uriPrefix}", true);
148148
Log($"Control Key: {_controlKey}: Check Key: {_checkKey}");
149-
Log($"Using API: {_baseUri}");
149+
Log($"Using Internal API: {_baseUri}");
150150

151151
_ = Task.Run(ServerTask);
152152

0 commit comments

Comments
 (0)