Skip to content

Commit

Permalink
fix: import logger correctly for mirror-check
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLastCicada committed Mar 1, 2024
1 parent 46ba5ae commit 63b74b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
data.sqlite3
test.sqlite3
test.sqlite3*
testMirror.sqlite3

# dependencies
Expand Down
8 changes: 4 additions & 4 deletions src/utils/datalayer-utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getConfig } from './config-loader';
import { logger } from '../logger.js';
import { logger } from '../config/logger.cjs';

export const encodeHex = (str) => {
return Buffer.from(str).toString('hex');
Expand Down Expand Up @@ -113,9 +113,9 @@ export const optimizeAndSortKvDiff = (kvDiff) => {

export const getMirrorUrl = async () => {
try {
const { DATALAYER_FILE_SERVER_URL } = getConfig().APP;
logger.debug(`Resolved Mirror Url: ${DATALAYER_FILE_SERVER_URL}`);
return DATALAYER_FILE_SERVER_URL;
const { DATALAYER_FILE_SERVER_URL } = getConfig().APP;
logger.debug(`Resolved Mirror Url: ${DATALAYER_FILE_SERVER_URL}`);
return DATALAYER_FILE_SERVER_URL;
} catch (error) {
logger.error('Error getting DATALAYER_FILE_SERVER_URL: ${error}');
return null;
Expand Down

0 comments on commit 63b74b6

Please sign in to comment.