Skip to content

Commit

Permalink
Change errors to warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyredondo committed Nov 18, 2024
1 parent 98a70ad commit 3e36e07
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tracer/src/Datadog.Trace/Ci/CiEnvironment/GitInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public static IGitInfo GetCurrent()
}
catch (Exception ex)
{
Log.Error(ex, "Error getting directory info");
Log.Warning(ex, "Error getting directory info");
return null;
}

Expand All @@ -189,17 +189,17 @@ public static IGitInfo GetCurrent()
}
catch (DirectoryNotFoundException ex)
{
Log.Error(ex, "Get directories failed with DirectoryNotFoundException");
Log.Warning(ex, "Get directories failed with DirectoryNotFoundException");
return null;
}
catch (UnauthorizedAccessException ex)
{
Log.Error(ex, "Get directories failed with UnauthorizedAccessException");
Log.Warning(ex, "Get directories failed with UnauthorizedAccessException");
return null;
}
catch (SecurityException ex)
{
Log.Error(ex, "Get directories or parent directory failed with SecurityException");
Log.Warning(ex, "Get directories or parent directory failed with SecurityException");
return null;
}
}
Expand Down

0 comments on commit 3e36e07

Please sign in to comment.