Skip to content

Commit

Permalink
Fixes a few minor logging issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ryannewington committed Sep 19, 2017
1 parent bb603b6 commit 0ffee1a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions src/Lithnet.Miiserver.AutoSync/MAInterface/MAController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,7 @@ internal void AddPendingActionIfNotQueued(string runProfileName, string source)
{
this.AddPendingActionIfNotQueued(new ExecutionParameters(runProfileName), source);
}

internal void AddPendingActionIfNotQueued(ExecutionParameters p, string source, bool runNext = false)
{
try
Expand Down Expand Up @@ -1337,7 +1337,16 @@ private string GetQueueItemNames(bool includeExecuting = true)

if (includeExecuting && this.ExecutingRunProfile != null)
{
return string.Join(",", this.ExecutingRunProfile + "*", queuedNames);
string current = this.ExecutingRunProfile + "*";

if (string.IsNullOrWhiteSpace(queuedNames))
{
return current;
}
else
{
return string.Join(",", current, queuedNames);
}
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ private void CheckTimer_Elapsed(object sender, ElapsedEventArgs e)
else
{
xpath = string.Format("/Request[msidmCompletedTime > '{0}']", this.lastCheckDateTime.Value.ToResourceManagementServiceDateFormat(false));
Trace.WriteLine("Searching for changes since {0}", this.lastCheckDateTime.Value.ToResourceManagementServiceDateFormat(false));
Trace.WriteLine($"Searching for changes since {this.lastCheckDateTime.Value.ToResourceManagementServiceDateFormat(false)}");
}

ISearchResultCollection r = c.GetResources(xpath, 1, new[] { "msidmCompletedTime" }, "msidmCompletedTime", false);
Expand Down

0 comments on commit 0ffee1a

Please sign in to comment.