Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
45e19c3561 | ||
|
|
04b2be1bb7 |
@@ -155,7 +155,7 @@ public class SimApiStorage
|
||||
/// <returns></returns>
|
||||
public string? GetPath(string? url)
|
||||
{
|
||||
return url?.Replace($"{Endpoint}/{Bucket}", string.Empty);
|
||||
return url?.Replace($"{Endpoint}/{Bucket}", string.Empty).Replace(ServeUrl,string.Empty);
|
||||
}
|
||||
|
||||
private void CheckPath(string path)
|
||||
|
||||
@@ -13,7 +13,7 @@ public class SimApiLogger(string name) : ILogger
|
||||
public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception,
|
||||
Func<TState, Exception, string> formatter)
|
||||
{
|
||||
Console.ForegroundColor = logLevel switch
|
||||
var color = logLevel switch
|
||||
{
|
||||
LogLevel.Debug => ConsoleColor.DarkMagenta,
|
||||
LogLevel.Information => ConsoleColor.DarkCyan,
|
||||
@@ -29,6 +29,6 @@ public class SimApiLogger(string name) : ILogger
|
||||
message += $"{exception}\n";
|
||||
}
|
||||
|
||||
Console.WriteLine(message);
|
||||
Console.WriteLine(message, color);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user