Skip to content

Commit

Permalink
Change exception logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Citrinate committed Feb 12, 2024
1 parent 2fad10a commit f1a92e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CS2Interface/CS/GameData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ private static async Task DoUpdate() {
ASF.ArchiLogger.LogGenericInfo("CS2 game data loaded");
}
} catch (Exception e) {
ASF.ArchiLogger.LogGenericError(e.Message);
ASF.ArchiLogger.LogGenericException(e);
} finally {
UpdateSemaphore.Release();
}
Expand Down
2 changes: 1 addition & 1 deletion CS2Interface/Helpers/AttributeConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer
json.Add(attribute.Name, attribute.ToString());
}
} catch (Exception e) {
ASF.ArchiLogger.LogGenericError(e.Message);
ASF.ArchiLogger.LogGenericException(e);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion CS2Interface/Helpers/KVConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer
json.Add(child.Name, ConvertKVObjectToJson(child));
} catch (Exception e) {
// item["523"] (Talon Knife) has duplicates of "inventory_image_data", just ignore the duplicates
ASF.ArchiLogger.LogGenericError(e.Message);
ASF.ArchiLogger.LogGenericException(e);
}
}

Expand Down

0 comments on commit f1a92e5

Please sign in to comment.