Skip to content

Commit e5527e7

Browse files
committed
Logging also taglists harvested from :FOR, as well the total :FOR clauses harvested. Logging also the unmet :NEEDS count.
1 parent 09735f6 commit e5527e7

5 files changed

Lines changed: 13 additions & 0 deletions

File tree

Source/ModuleManager/ModuleManager.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,10 @@ internal void Update()
274274
, this.counter.errors.Value
275275
, this.counter.patchedNodes.Value
276276
);
277+
Log("{0} were removed by unsatisfied :NEEDS and {1} tags (modnames) were harvested from :FOR ."
278+
, this.counter.needsUnsatisfied.Value
279+
, this.counter.tagLists.Value
280+
);
277281
Log("Total loading Time = {0:0.000}s, with {1} on patching and {2} on post patching (both parallel to loading)."
278282
, PerformanceMetrics.Instance.ElapsedTimeInSecs
279283
, (string)this.timings.Patching

Source/ModuleManager/PatchExtractor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ public IPatch ExtractPatch(UrlDir.UrlConfig urlConfig)
9494
ITagList tagList;
9595
try
9696
{
97+
progress.ProcessingTagList(urlConfig);
9798
tagList = tagListParser.Parse(name, urlConfig);
9899
}
99100
catch (FormatException ex)

Source/ModuleManager/Progress/IPatchProgress.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public interface IPatchProgress
3030
void Error(string message, params object[] @params);
3131
void Exception(Exception exception, string message, params object[] @params);
3232
void Exception(Exception exception, UrlDir.UrlConfig url, string message, params object[] @params);
33+
void ProcessingTagList(UrlDir.UrlConfig urlConfig);
3334
void NeedsUnsatisfiedRoot(UrlDir.UrlConfig url);
3435
void NeedsUnsatisfiedNode(UrlDir.UrlConfig url, string path);
3536
void NeedsUnsatisfiedValue(UrlDir.UrlConfig url, string path);

Source/ModuleManager/Progress/PatchProgress.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ public void PatchApplied()
8181
OnPatchApplied.Fire();
8282
}
8383

84+
public void ProcessingTagList(UrlDir.UrlConfig url)
85+
{
86+
logger.Info("Procesing Tag List (modname) in file {0} node: {1}", url.parent.url, url.type);
87+
Counter.tagLists.Increment();
88+
}
89+
8490
public void NeedsUnsatisfiedRoot(UrlDir.UrlConfig url)
8591
{
8692
logger.Info("Deleting root node in file {0} node: {1} as it can't satisfy its NEEDS", url.parent.url, url.type);

Source/ModuleManager/Progress/ProgressCounter.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public class ProgressCounter
2929
public readonly Counter errors = new Counter();
3030
public readonly Counter exceptions = new Counter();
3131
public readonly Counter needsUnsatisfied = new Counter();
32+
public readonly Counter tagLists = new Counter();
3233

3334
public readonly Dictionary<String, int> warningFiles = new Dictionary<string, int>();
3435
public readonly Dictionary<String, int> errorFiles = new Dictionary<string, int>();

0 commit comments

Comments
 (0)