Skip to content

Commit

Permalink
do not log error for cmk, since that will show up as a failure on our…
Browse files Browse the repository at this point in the history
… dashboards (#1035)
  • Loading branch information
jnlycklama authored Sep 10, 2024
1 parent ff171b2 commit d69c12b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ public async Task<int> UpsertInstanceSchemaInformationAsync(string name, SchemaI
throw;
}

if (sqlEx.IsCMKError())
{
// do not log error if it is a CMK error, since it is the customer's issue and not a system issue
throw;
}

_logger.LogError(sqlEx, "Error from SQL database on upserting InstanceSchema information");
throw;
}
Expand Down

0 comments on commit d69c12b

Please sign in to comment.