Skip to content

Commit

Permalink
Versioning_Engine: Set Upgrader logging behaviour to false (#3342)
Browse files Browse the repository at this point in the history
  • Loading branch information
IsakNaslundBh authored May 6, 2024
2 parents f6ee840 + 22b0ab5 commit 07f4ac1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Versioning_Engine/Convert/ToNewVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,11 @@ private static Func<BsonDocument, BsonDocument> GetUpgraderMethod(string version
}
Type upgraderType = upgraderAssembly.GetTypes().First(x => x.Name == "Upgrader");
m_Upgrader = Activator.CreateInstance(upgraderType);
try
{
(m_Upgrader as dynamic).LogToConsole = false;
}
catch (Exception ex) { }
m_UpgraderMethod = upgraderType.GetMethod("Upgrade", BindingFlags.NonPublic | BindingFlags.Instance);

Type baseConverterType = upgraderAssembly.GetTypes().First(x => x.Name == "Converter");
Expand Down

0 comments on commit 07f4ac1

Please sign in to comment.