analizators/s2259

This commit is contained in:
Anton Suhorukov 2021-12-30 14:00:03 +03:00
parent 555ca30c99
commit 3d33fecf77
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ namespace ASC.Api.Core.Middleware
if (tenant == null)
{
context.Result = new StatusCodeResult((int)HttpStatusCode.NotFound);
log.WarnFormat("Tenant {0} not found", tenant.TenantId);
log.WarnFormat("Current tenant not found");
return;
}

View File

@ -73,7 +73,7 @@ namespace ASC.MessagingSystem
Action = action,
Description = description,
Target = target,
UAHeader = request.Headers[userAgentHeader].FirstOrDefault()
UAHeader = request?.Headers[userAgentHeader].FirstOrDefault()
};
}
catch (Exception ex)