Skip to content

Commit 377f711

Browse files
authored
Merge pull request #372 from siemens/bugfix/artifactoryuploaderallignmentissue
fix: updated pipe symbol in warnings and errors
2 parents 138e896 + c881ee6 commit 377f711

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/LCT.APICommunications/AttachmentHelper.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ public string AttachComponentSourceToSW360(AttachReport attachReport, Comparison
9595
}
9696
catch (UriFormatException ex)
9797
{
98-
Logger.Error($"AttachComponentSourceToSW360:", ex);
98+
Logger.Error($" └── AttachComponentSourceToSW360:", ex);
9999
}
100100
catch (SecurityException ex)
101101
{
102-
Logger.Error($"AttachComponentSourceToSW360:", ex);
102+
Logger.Error($" └── AttachComponentSourceToSW360:", ex);
103103
}
104104
catch (WebException webex)
105105
{
@@ -111,13 +111,13 @@ public string AttachComponentSourceToSW360(AttachReport attachReport, Comparison
111111
StreamReader reader = new StreamReader(respStream);
112112
string text = reader.ReadToEnd();
113113
Logger.Debug($"Web exception: {text}", webex);
114-
Logger.Warn($"Web exception: {text}", webex);
114+
Logger.Warn($" └── Web exception: {text}", webex);
115115
}
116116
}
117117
}
118118
catch (IOException ex)
119119
{
120-
Logger.Error($"AttachComponentSourceToSW360:Failed attach source for release = {attachReport.ReleaseId}");
120+
Logger.Error($" └── AttachComponentSourceToSW360:Failed attach source for release = {attachReport.ReleaseId}");
121121
Logger.Debug($"AttachComponentSourceToSW360:", ex);
122122
}
123123
return releaseAttachementApi;
@@ -162,7 +162,7 @@ private static void HandleAcceptedStatus(HttpWebResponse httpResponse, Compariso
162162
{
163163
if (httpResponse.StatusCode == HttpStatusCode.Accepted)
164164
{
165-
Logger.Logger.Log(null, Level.Warn, $"Moderation request is created while uploading source code in SW360. Please request {component.ReleaseCreatedBy} or the license clearing team to approve the moderation request.", null);
165+
Logger.Logger.Log(null, Level.Warn, $" └── Moderation request is created while uploading source code in SW360. Please request {component.ReleaseCreatedBy} or the license clearing team to approve the moderation request.", null);
166166
}
167167
else
168168
{

src/LCT.Services/Sw360CreatorService.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ public async Task<ComponentCreateStatus> CreateComponentBasesOFswComaprisonBOM(
8888
Environment.ExitCode = -1;
8989
Logger.Debug($"CreateComponent():Component Name -{componentInfo.Name}- " +
9090
$"response status code-{response.StatusCode} and reason pharase-{response.ReasonPhrase}");
91-
Logger.Error($"CreateComponent():Component Name -{componentInfo.Name}- " +
91+
Logger.Error($" └── CreateComponent():Component Name -{componentInfo.Name}- " +
9292
$"response status code-{response.StatusCode} and reason pharase-{response.ReasonPhrase}");
9393
}
9494
}
9595
catch (HttpRequestException e)
9696
{
97-
Logger.Error($"CreateComponent():", e);
97+
Logger.Error($" └── CreateComponent():", e);
9898
Environment.ExitCode = -1;
9999
componentCreateStatus.IsCreated = false;
100100
componentCreateStatus.ReleaseStatus.IsCreated = false;
@@ -183,7 +183,7 @@ public async Task<ReleaseCreateStatus> CreateReleaseForComponent(ComparisonBomDa
183183
Environment.ExitCode = -1;
184184
Logger.Debug($"CreateReleaseForComponent():Component Name -{componentInfo.Name}{componentInfo.Version}- " +
185185
$"response status code-{response.StatusCode} and reason pharase-{response.ReasonPhrase}");
186-
Logger.Error($"CreateReleaseForComponent():Component Name -{componentInfo.Name}{componentInfo.Version}- " +
186+
Logger.Error($" └── CreateReleaseForComponent():Component Name -{componentInfo.Name}{componentInfo.Version}- " +
187187
$"response status code-{response.StatusCode} and reason pharase-{response.ReasonPhrase}");
188188
}
189189

@@ -221,7 +221,7 @@ private async Task<string> GetReleaseIdToLinkToProject(string name, string versi
221221
}
222222
if (string.IsNullOrEmpty(releaseId))
223223
{
224-
Logger.Warn($"Release id not found for the Component - {name}-{version}");
224+
Logger.Warn($" └── Release id not found for the Component - {name}-{version}");
225225
}
226226
return releaseId ?? string.Empty;
227227
}

0 commit comments

Comments
 (0)