Skip to content

Commit

Permalink
Rhino8 Net7 -> Net4.8 (#3625)
Browse files Browse the repository at this point in the history
* Net7 -> Net4.8

* Removed serilog enriching for netframework compat

* fix: docker-compose.yml updates

---------

Co-authored-by: Alan Rynne <[email protected]>
  • Loading branch information
JR-Morgan and AlanRynne authored Sep 13, 2024
1 parent d8e58c9 commit 25483ad
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 16 deletions.
2 changes: 1 addition & 1 deletion ConnectorRhino/ConnectorRhino8/ConnectorRhino8.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net7.0-windows;net48</TargetFrameworks>
<TargetFramework>net48</TargetFramework>
<Title>SpeckleRhino</Title>
<Description>Description of SpeckleRhino</Description>
<TargetExt>.rhp</TargetExt>
Expand Down
1 change: 0 additions & 1 deletion Core/Core/Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
<PackageReference Include="Polly.Contrib.WaitAndRetry" Version="1.1.1" />
<PackageReference Include="Polly.Extensions.Http" Version="3.0.0" />
<PackageReference Include="Serilog" Version="2.12.0" />
<PackageReference Include="Serilog.Exceptions" Version="8.4.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="4.1.0" />
<PackageReference Include="Serilog.Sinks.Seq" Version="5.2.2" />
<PackageReference Include="SerilogTimings" Version="3.0.1" />
Expand Down
9 changes: 4 additions & 5 deletions Core/Core/Logging/SpeckleLog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using Serilog;
using Serilog.Core;
using Serilog.Events;
using Serilog.Exceptions;
using Speckle.Core.Credentials;
using Speckle.Core.Helpers;

Expand Down Expand Up @@ -180,10 +179,10 @@ SpeckleLogConfiguration logConfiguration
.Enrich.WithProperty("runtime", RuntimeInformation.FrameworkDescription)
.Enrich.WithProperty("hostApplication", $"{hostApplicationName}{hostApplicationVersion ?? ""}");

if (logConfiguration.EnhancedLogContext)
{
serilogLogConfiguration = serilogLogConfiguration.Enrich.WithExceptionDetails();
}
// if (logConfiguration.EnhancedLogContext)
// {
// serilogLogConfiguration = serilogLogConfiguration.Enrich.WithExceptionDetails();
// }

if (logConfiguration.LogToFile && canLogToFile)
{
Expand Down
15 changes: 7 additions & 8 deletions Core/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,14 @@ services:
restart: always
healthcheck:
test:
[
"CMD",
"node",
"-e",
"require('node:http').request({headers: {'Content-Type': 'application/json'}, port:3000, hostname:'127.0.0.1', path:'/graphql?query={serverInfo{version}}', method: 'GET' }, (res) => { body = ''; res.on('data', (chunk) => {body += chunk;}); res.on('end', () => {process.exit(res.statusCode != 200 || body.toLowerCase().includes('error'));}); }).end();",
]
- CMD
- /nodejs/bin/node
- -e
- "try { require('node:http').request({headers: {'Content-Type': 'application/json'}, port:3000, hostname:'127.0.0.1', path:'/readiness', method: 'GET', timeout: 2000 }, (res) => { body = ''; res.on('data', (chunk) => {body += chunk;}); res.on('end', () => {process.exit(res.statusCode != 200 || body.toLowerCase().includes('error'));}); }).end(); } catch { process.exit(1); }"
interval: 10s
timeout: 3s
retries: 30
timeout: 10s
retries: 3
start_period: 90s
ports:
- "0.0.0.0:3000:3000"
depends_on:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0-windows</TargetFramework>
<TargetFramework>net48</TargetFramework>
<Title>Objects.Converter.Rhino8</Title>
<Description>Converter for Rhino and Grasshopper</Description>
<TargetExt>.dll</TargetExt>
Expand Down

0 comments on commit 25483ad

Please sign in to comment.