Skip to content

Commit e24afd5

Browse files
authored
Merge pull request #374 from siemens/development
fix: Pipe alignment fix
2 parents cc14775 + 15552bf commit e24afd5

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
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.Common/Logging/LoggerHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@ public static void WriteFossologyProcessInitializeMessage(string formattedName,
12981298
{
12991299
if (LoggerFactory.UseSpectreConsole)
13001300
{
1301-
Logger.Logger.Log(null, Level.Notice, $" ├── Initiating FOSSology process for: Release : Name - [cyan]{formattedName}[/] , version - [cyan]{item.Version}[/]", null);
1301+
Logger.Logger.Log(null, Level.Notice, $" ├── Initiating FOSSology process for: Release : Name - [cyan]{formattedName}[/] , version - [cyan]{item.Version}[/]", null);
13021302
}
13031303
else
13041304
{

src/LCT.SW360PackageCreator/CreatorHelper.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -725,19 +725,19 @@ private static void LogSourceAndDownloadUrlWarnings(ComparisonBomData component)
725725

726726
if (isSourceUrlMissing && isDownloadUrlMissing)
727727
{
728-
Logger.Warn($" └── Source URL AND Release source Download URL are not found (source file not attached) for {component.Name}-{component.Version}");
728+
Logger.Warn($" └── Source URL AND Release source Download URL are not found (source file not attached) for {component.Name}-{component.Version}");
729729
Logger.Debug($"LogSourceAndDownloadUrlWarnings(): Both SourceUrl and DownloadUrl not found for {component.Name}-{component.Version}");
730730
}
731731
else
732732
{
733733
if (isSourceUrlMissing)
734734
{
735-
Logger.Warn($" └── Source URL is not found for {component.Name}-{component.Version}");
735+
Logger.Warn($" └── Source URL is not found for {component.Name}-{component.Version}");
736736
Logger.Debug($"LogSourceAndDownloadUrlWarnings():SourceUrl not found for {component.Name}-{component.Version}");
737737
}
738738
else if (isDownloadUrlMissing)
739739
{
740-
Logger.Warn($" └── Source file is not attached,Release source Download Url is not Found for {component.Name}-{component.Version}");
740+
Logger.Warn($" └── Source file is not attached,Release source Download Url is not Found for {component.Name}-{component.Version}");
741741
}
742742
}
743743

src/LCT.Services/Sw360CreatorService.cs

Lines changed: 5 additions & 5 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
}
@@ -599,7 +599,7 @@ public async Task<bool> UpdateSourceCodeDownloadURLForExistingRelease(Comparison
599599
string responseContent = await updateResponse.Content.ReadAsStringAsync();
600600
if (responseContent.Contains(Dataconstant.ModerationRequestMessage, StringComparison.OrdinalIgnoreCase))
601601
{
602-
Logger.Logger.Log(null, Level.Warn, $"Moderation request is created while updating the SourceDownloadURL in SW360. Please request {cbomData.ReleaseCreatedBy} or the license clearing team to approve the moderation request.", null);
602+
Logger.Logger.Log(null, Level.Warn, $" └── Moderation request is created while updating the SourceDownloadURL in SW360. Please request {cbomData.ReleaseCreatedBy} or the license clearing team to approve the moderation request.", null);
603603
return false;
604604
}
605605
else

0 commit comments

Comments
 (0)