Skip to content
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

Versioning_Engine: Set Upgrader logging behaviour to false #3342

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 @@ -44,7 +44,7 @@
/**** Public Methods ****/
/***************************************************/

public static string ToNewVersion(string json)

Check warning on line 47 in Versioning_Engine/Convert/ToNewVersion.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Versioning_Engine/Convert/ToNewVersion.cs#L47

Input parameter requires a matching Input attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/IsInputAttributePresent Method must contain an Output or MultiOutput attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasOutputAttribute
{
BsonDocument document;
if (BsonDocument.TryParse(json, out document))
Expand All @@ -64,7 +64,7 @@

/***************************************************/

public static BsonDocument ToNewVersion(this BsonDocument document, string version = "")

Check warning on line 67 in Versioning_Engine/Convert/ToNewVersion.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Versioning_Engine/Convert/ToNewVersion.cs#L67

Input parameter requires a matching Input attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/IsInputAttributePresent Input parameter requires a matching Input attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/IsInputAttributePresent Method must contain an Output or MultiOutput attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasOutputAttribute
{
if (document == null)
return null;
Expand Down Expand Up @@ -313,6 +313,11 @@
}
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
Loading