Skip to content

Commit 9f2f526

Browse files
committed
[SharpGen] Remove verbose log output
1 parent b9fb393 commit 9f2f526

File tree

2 files changed

+27
-19
lines changed

2 files changed

+27
-19
lines changed

Source/Tools/SharpGen/Doc/DocProviderMsdn.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ public DocItem FindDocumentation(string name)
158158
}
159159
if (oldName != name)
160160
{
161-
Console.WriteLine("Documentation: Use name [{0}] instead of [{1}]", name, oldName);
161+
//Console.WriteLine("Documentation: Use name [{0}] instead of [{1}]", name, oldName);
162162
}
163163

164-
Logger.Progress(20 + (counter/50) % 10, "Applying C++ documentation ([{0}])", name);
164+
//Logger.Progress(20 + (counter/50) % 10, "Applying C++ documentation ([{0}])", name);
165165

166166
string doc = GetDocumentationFromCacheOrMsdn(name);
167167
if(doc == null)
@@ -516,7 +516,7 @@ public static string GetDocFromMTPS(string shortId)
516516
return response.primaryDocuments[0].Any.OuterXml;
517517
} catch (Exception ex)
518518
{
519-
Logger.Warning("MTPS error for id {0} : {1}", shortId, ex.Message);
519+
//Logger.Warning("MTPS error for id {0} : {1}", shortId, ex.Message);
520520
}
521521
return string.Empty;
522522
}
@@ -551,7 +551,7 @@ public static string GetShortId(string name)
551551
}
552552
catch (Exception ex)
553553
{
554-
Logger.Warning("Unable to get id for [{0}] (Reason: {1})", name, ex.Message);
554+
//Logger.Warning("Unable to get id for [{0}] (Reason: {1})", name, ex.Message);
555555
}
556556

557557
return string.Empty;

Source/Tools/SharpGen/Parser/CppParser.cs

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ private void Parse(StreamReader reader)
624624
{
625625
var typeName = xTypedef.AttributeValue("name");
626626
xStruct.SetAttributeValue("name", typeName);
627-
Logger.Message("Use typedef to rename [{0}] to [{1}]", structName, typeName);
627+
//Logger.Message("Use typedef to rename [{0}] to [{1}]", structName, typeName);
628628
}
629629
break;
630630
}
@@ -1527,10 +1527,12 @@ private void ApplyDocumentation()
15271527

15281528
if (cppEnum.IsEmpty)
15291529
continue;
1530-
1531-
if (cppEnum.Items.Count != docItem.Items.Count)
1532-
Logger.Warning("Warning Invalid number enum items in documentation for Enum {0}",
1533-
cppEnum.Name);
1530+
1531+
if(cppEnum.Items.Count != docItem.Items.Count)
1532+
{
1533+
//Logger.Warning("Warning Invalid number enum items in documentation for Enum {0}",
1534+
// cppEnum.Name);
1535+
}
15341536
int count = Math.Min(cppEnum.Items.Count, docItem.Items.Count);
15351537
int i = 0;
15361538
foreach (CppEnumItem cppEnumItem in cppEnum.EnumItems)
@@ -1563,9 +1565,11 @@ private void ApplyDocumentation()
15631565

15641566
if (cppStruct.IsEmpty)
15651567
continue;
1566-
1567-
if (cppStruct.Items.Count != docItem.Items.Count)
1568-
Logger.Warning("Invalid number of fields in documentation for Struct {0}", cppStruct.Name);
1568+
1569+
if(cppStruct.Items.Count != docItem.Items.Count)
1570+
{
1571+
//Logger.Warning("Invalid number of fields in documentation for Struct {0}", cppStruct.Name);
1572+
}
15691573
int count = Math.Min(cppStruct.Items.Count, docItem.Items.Count);
15701574
int i = 0;
15711575
foreach (CppField cppField in cppStruct.Fields)
@@ -1610,10 +1614,12 @@ private void ApplyDocumentation()
16101614

16111615
if (cppMethod.IsEmpty)
16121616
continue;
1613-
1614-
if (cppMethod.Items.Count != methodDocItem.Items.Count)
1615-
Logger.Warning("Invalid number of documentation for Parameters for method {0}",
1616-
methodName);
1617+
1618+
if(cppMethod.Items.Count != methodDocItem.Items.Count)
1619+
{
1620+
//Logger.Warning("Invalid number of documentation for Parameters for method {0}",
1621+
// methodName);
1622+
}
16171623
int count = Math.Min(cppMethod.Items.Count, methodDocItem.Items.Count);
16181624
int i = 0;
16191625
foreach (CppParameter cppParameter in cppMethod.Parameters)
@@ -1649,9 +1655,11 @@ private void ApplyDocumentation()
16491655
if (cppFunction.IsEmpty)
16501656
continue;
16511657

1652-
if (cppFunction.Items.Count != docItem.Items.Count)
1653-
Logger.Warning("Invalid number of documentation for Parameters for Function {0}",
1654-
cppFunction.Name);
1658+
if(cppFunction.Items.Count != docItem.Items.Count)
1659+
{
1660+
//Logger.Warning("Invalid number of documentation for Parameters for Function {0}",
1661+
// cppFunction.Name);
1662+
}
16551663
int count = Math.Min(cppFunction.Items.Count, docItem.Items.Count);
16561664
int i = 0;
16571665
foreach (CppParameter cppParameter in cppFunction.Parameters)

0 commit comments

Comments
 (0)