fix: some fixes to file paths for the reworked websocket

This commit is contained in:
Nick Genovese
2024-11-05 13:16:46 -05:00
parent 1d20f6d1ed
commit 4f01ff1379
4 changed files with 22 additions and 17 deletions

View File

@@ -12,7 +12,7 @@ namespace PepperDash.Core.Logging
{
AppName = CrestronEnvironment.DevicePlatform switch
{
eDevicePlatform.Appliance => $"App {InitialParametersClass.ApplicationNumber}",
eDevicePlatform.Appliance => $"APP{InitialParametersClass.ApplicationNumber.ToString().PadLeft(2, '0')}",
eDevicePlatform.Server => $"{InitialParametersClass.RoomId}",
_ => string.Empty
};
@@ -22,7 +22,6 @@ namespace PepperDash.Core.Logging
public void Enrich(LogEvent logEvent, ILogEventPropertyFactory propertyFactory)
{
var property = propertyFactory.CreateProperty("App", AppName);
logEvent.AddOrUpdateProperty(property);
}
}