Skip to content

Commit

Permalink
Merge pull request #2274 from Atralupus/feat/change-log-format
Browse files Browse the repository at this point in the history
Change acs log format for loki
  • Loading branch information
Atralupus authored Oct 19, 2023
2 parents e44aa4c + 97d1d3f commit cade52b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ public bool IsAccessDenied(Address address)
var result = _db.KeyExists(address.ToString());
if (result)
{
Log.Debug($"{address} is access denied");
Log.ForContext("Source", nameof(IAccessControlService))
.Debug("\"{Address}\" is access denied", address);
}

return result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ public bool IsAccessDenied(Address address)

if (result)
{
Log.Debug($"{address} is access denied");
Log.ForContext("Source", nameof(IAccessControlService))
.Debug("\"{Address}\" is access denied", address);
}

return result;
Expand Down

0 comments on commit cade52b

Please sign in to comment.