Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
eirannejad committed Mar 12, 2024
1 parent 45b55c4 commit 8bef100
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/compute.geometry/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void ConfigureServices(IServiceCollection services)
public void Configure(IApplicationBuilder app)
{
RhinoCoreStartup();

app.UseRouting();
app.UseCors();
//if (!String.IsNullOrEmpty(Config.ApiKey))
Expand All @@ -47,7 +47,8 @@ void RhinoCoreStartup()
{
Program.RhinoCore = new Rhino.Runtime.InProcess.RhinoCore(null, Rhino.Runtime.InProcess.WindowStyle.NoWindow);
Environment.SetEnvironmentVariable("RHINO_TOKEN", null, EnvironmentVariableTarget.Process);
Rhino.Runtime.HostUtils.OnExceptionReport += (source, ex) => {
Rhino.Runtime.HostUtils.OnExceptionReport += (source, ex) =>
{
Log.Error(ex, "An exception occurred while processing request");
Logging.LogExceptionData(ex);
};
Expand Down

0 comments on commit 8bef100

Please sign in to comment.