Skip to content

Commit

Permalink
fix: improved logging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLastCicada committed Feb 29, 2024
1 parent 6f11812 commit 5faf33f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/utils/datalayer-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,15 @@ export const optimizeAndSortKvDiff = (kvDiff) => {
export const getMirrorUrl = async () => {
try {
const DATALAYER_FILE_SERVER_URL = CONFIG().CHIA.DATALAYER_FILE_SERVER_URL;
logger.debug('Config Mirror Url', DATALAYER_FILE_SERVER_URL);
console.debug('Config Mirror Url', DATALAYER_FILE_SERVER_URL);

const chiaConfig = fullNode.getChiaConfig();

const finalUrl = DATALAYER_FILE_SERVER_URL
? DATALAYER_FILE_SERVER_URL
: `http://${await publicIpv4()}:${chiaConfig.data_layer.host_port}`;

logger.debug('Resolved Mirror Url', finalUrl);
console.debug('Resolved Mirror Url', finalUrl);
return finalUrl;
} catch (error) {
logger.error('Error getting mirror url', error);
Expand Down

0 comments on commit 5faf33f

Please sign in to comment.