Skip to content

Commit

Permalink
Revert "add resolver logs"
Browse files Browse the repository at this point in the history
This reverts commit 34e3f6b.
  • Loading branch information
malteish committed Jun 20, 2024
1 parent 6d27482 commit 0cda012
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,11 @@ import { logDebug } from '@dm3-org/dm3-lib-shared';
export async function handleAddr(db: IDatabase, request: any) {
const { name } = request;

console.log('resolve address for ', name);

const interceptResult = interceptAddr(name);
logDebug({
text: '[Interceptor handleAddr]` result ',
interceptResult,
});

if (interceptResult) {
console.log('intercepted result for ', name, ' is ', interceptResult);
}

const container = await db.getProfileContainer(name);

console.log('container for ', name, ' is ', container?.address);

return interceptResult ?? container?.address;
return interceptResult ?? (await db.getProfileContainer(name))?.address;
}

0 comments on commit 0cda012

Please sign in to comment.