Skip to content

Commit

Permalink
Update Program.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
LanceMcCarthy committed May 17, 2024
1 parent 2d3bc5d commit e6636f3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions DevCraftAspire.ApiService/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,11 @@

app.MapDefaultEndpoints();

// Temporary for debugging ApiService file access
#if RELEASE

// For REST service errors
var logFilePath = "/home/_traceoutput.log";
//File.SetUnixFileMode(logFilePath, UnixFileMode.UserRead | UnixFileMode.UserWrite);
var logFilePath = "/home/app/_traceoutput.log";
System.Diagnostics.Trace.Listeners.Add(new System.Diagnostics.TextWriterTraceListener());
System.Diagnostics.Trace.AutoFlush = true;
#endif


app.Run();

0 comments on commit e6636f3

Please sign in to comment.