From 9da1a4a2dece1ddcdfe32fec31b0f2c327064dae Mon Sep 17 00:00:00 2001 From: John Colvin Date: Wed, 20 Apr 2022 12:45:07 -0400 Subject: [PATCH] fix: Remove CharSet.Unicode' from 'Logger_log' DLLImport attr Bugs (fixed): * csharp logs only include the first char of the log message Omnisharp recommended this be specified in the attribute after upgrading to dotnet 6. They were wrong. --- src/client/spark_api/logging/Logger.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/spark_api/logging/Logger.cs b/src/client/spark_api/logging/Logger.cs index 0f409432a..49114ed2d 100644 --- a/src/client/spark_api/logging/Logger.cs +++ b/src/client/spark_api/logging/Logger.cs @@ -28,7 +28,7 @@ namespace bts { string message, [CallerFilePath] string file = "", [CallerLineNumber] int line = 0) => Logger_log(LogLevel.Fatal, subsystem, message, file, line); - [DllImport("libspark", CharSet = CharSet.Unicode)] + [DllImport("libspark")] internal static extern void Logger_log( LogLevel level, LogSubsystem subsystem, string message, string file, int line); }