Skip to content

Log errors by jobs #4353

Answered by sbwalker
pnicosia80 asked this question in Q&A
Jun 25, 2024 · 4 comments · 5 replies
Discussion options

You must be logged in to vote

@pnicosia80 #4356 addresses your issue:

  • defensive logic added to validate Alias is not null
  • use Alias.Protocol rather than accessor.HttpContext.Request.Protocol to avoid HttpContext exceptions
  • use GetUserRoles(roleName, siteId) to get list of host users rather than using GetUserRoles(siteId) which retrieves all UserRole records for the entire site (performance improvement)

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@pnicosia80
Comment options

@sbwalker
Comment options

@pnicosia80
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@pnicosia80
Comment options

@sbwalker
Comment options

Answer selected by pnicosia80
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants