mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-15 00:54:15 +01:00
further fixes
This commit is contained in:
parent
b2b42b40c4
commit
e461c6d5c9
9 changed files with 85 additions and 39 deletions
|
|
@ -20,13 +20,13 @@ internal class DalamudLogger : ILogger
|
|||
{
|
||||
if (!IsEnabled(logLevel)) return;
|
||||
|
||||
if (exception == null)
|
||||
if ((int)logLevel <= (int)LogLevel.Information)
|
||||
PluginLog.Information($"[{_name}]{{{(int)logLevel}}} {state}");
|
||||
else
|
||||
{
|
||||
StringBuilder sb = new();
|
||||
sb.AppendLine($"[{_name}]{{{(int)logLevel}}} {state}: {exception.Message}");
|
||||
sb.AppendLine(exception.StackTrace);
|
||||
sb.AppendLine($"[{_name}]{{{(int)logLevel}}} {state}: {exception?.Message}");
|
||||
sb.AppendLine(exception?.StackTrace);
|
||||
if (logLevel == LogLevel.Warning)
|
||||
PluginLog.Warning(sb.ToString());
|
||||
else if (logLevel == LogLevel.Error)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue