Update logging methods to use standard naming conventions
Replaced custom Warn method with LogWarning in Logger class and updated usage in FinalizeDocumentJob. Added LogInformation and LogWarning methods for consistency with common logging practices. LogWarning now accepts an Exception as the first parameter, aligning with standard logging signatures.
This commit is contained in:
@@ -196,7 +196,7 @@ public class FinalizeDocumentJob(IOptions<WorkerOptions> options, IConfiguration
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.Error(ex);
|
||||
_logger.Warn(ex, "Unhandled exception while working envelope [{0}]", id);
|
||||
_logger.LogWarning(ex, "Unhandled exception while working envelope [{0}]", id);
|
||||
}
|
||||
|
||||
current += 1;
|
||||
|
||||
Reference in New Issue
Block a user