Skip to content

Versioning_Engine: Set Upgrader logging behaviour to false #3342

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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