Skip to content

Commit 903bc24

Browse files
Warning color change
1 parent f7b45c9 commit 903bc24

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

src/ArtifactoryUploader/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ static async Task Main(string[] args)
9999
// Initialize telemetry with CATool version and instrumentation key only if Telemetry is enabled in appsettings
100100
if (appSettings.Telemetry == true)
101101
{
102-
Logger.Logger.Log(null, Level.Notice, TelemetryConstant.StartLogMessage, null);
102+
Logger.Warn( TelemetryConstant.StartLogMessage );
103103
Telemetry.Telemetry telemetry = new Telemetry.Telemetry("ApplicationInsights", new Dictionary<string, string>
104104
{
105105
{ "InstrumentationKey", appSettings.ApplicationInsight_InstrumentKey }
@@ -116,7 +116,7 @@ static async Task Main(string[] args)
116116
CommonHelper.TrackKpiDataTelemetry(telemetry, TelemetryConstant.ArtifactoryUploaderKpiData, PackageUploader.uploaderKpiData);
117117
}
118118
telemetry.TrackExecutionTime();
119-
Logger.Logger.Log(null, Level.Notice, $"End of Artifactory Uploader Telemetry execution : {DateTime.Now}\n", null);
119+
120120
}
121121
catch (Exception ex)
122122
{

src/LCT.PackageIdentifier/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ static async Task Main(string[] args)
125125
// Initialize telemetry with CATool version and instrumentation key only if Telemetry is enabled in appsettings
126126
if (appSettings.Telemetry == true)
127127
{
128-
Logger.Logger.Log(null, Level.Notice, TelemetryConstant.StartLogMessage, null);
128+
Logger.Warn(TelemetryConstant.StartLogMessage);
129129
Telemetry.Telemetry telemetry = new Telemetry.Telemetry("ApplicationInsights", new Dictionary<string, string>
130130
{
131131
{ "InstrumentationKey", appSettings.ApplicationInsight_InstrumentKey }

src/LCT.SW360PackageCreator/Program.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,13 @@ static async Task Main(string[] args)
8888

8989
if (appSettings.IsTestMode)
9090
Logger.Logger.Log(null, Level.Notice, $"\tMode\t\t\t --> {appSettings.Mode}\n", null);
91-
91+
92+
await InitiatePackageCreatorProcess(appSettings, sw360ProjectService, sW360ApicommunicationFacade);
93+
9294
// Initialize telemetry with CATool version and instrumentation key only if Telemetry is enabled in appsettings
9395
if (appSettings.Telemetry == true)
9496
{
95-
Logger.Logger.Log(null, Level.Notice, TelemetryConstant.StartLogMessage, null);
97+
Logger.Warn( TelemetryConstant.StartLogMessage);
9698
Telemetry.Telemetry telemetry = new Telemetry.Telemetry("ApplicationInsights", new Dictionary<string, string>
9799
{
98100
{ "InstrumentationKey", appSettings.ApplicationInsight_InstrumentKey }
@@ -120,7 +122,7 @@ static async Task Main(string[] args)
120122
}
121123
}
122124

123-
await InitiatePackageCreatorProcess(appSettings, sw360ProjectService, sW360ApicommunicationFacade);
125+
124126

125127
Logger.Logger.Log(null, Level.Notice, $"End of Package Creator execution: {DateTime.Now}\n", null);
126128

0 commit comments

Comments
 (0)