Skip to content

Commit c71a621

Browse files
committed
fix(Dashboard): removed use of Console
Signed-off-by: Jean-Baptiste Bianchi <[email protected]>
1 parent 5cdd871 commit c71a621

File tree

1 file changed

+1
-3
lines changed
  • src/dashboard/Synapse.Dashboard/Pages/Workflows/Create

1 file changed

+1
-3
lines changed

src/dashboard/Synapse.Dashboard/Pages/Workflows/Create/Store.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
using Semver;
1717
using ServerlessWorkflow.Sdk.Models;
1818
using Synapse.Api.Client.Services;
19-
using Synapse.Dashboard.Components.DocumentDetailsStateManagement;
20-
using Synapse.Dashboard.Components.ResourceEditorStateManagement;
2119
using Synapse.Resources;
2220
using System.Text.RegularExpressions;
2321

@@ -539,7 +537,7 @@ protected async Task SetValidationSchema(string? version = null)
539537
}
540538
catch (Exception ex)
541539
{
542-
Console.WriteLine(ex.ToString());
540+
this.Logger.LogError("Unable to set the validation schema: {exception}", ex.ToString());
543541
this.SetProblemDetails(new ProblemDetails(new Uri("about:blank"), "Unable to set the validation schema", 404, $"Unable to set the validation schema for the specification version '{version}'. Make sure the version exists."));
544542
}
545543
this._processingVersion = false;

0 commit comments

Comments
 (0)