Skip to content

Commit 5fb58b2

Browse files
committed
fix: switched debug to util.debuglog
1 parent 9597a07 commit 5fb58b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
const process = require('process');
22
const { basename, extname, resolve } = require('path');
3+
const { debuglog } = require('util');
34

45
const { toASCII } = require('punycode/');
56

67
const Boom = require('@hapi/boom');
7-
const debug = require('debug')('ladjs:i18n');
88
const { I18n } = require('i18n');
99
const locales = require('i18n-locales');
1010
const multimatch = require('multimatch');
@@ -15,6 +15,8 @@ const { getLanguage } = require('@ladjs/country-language');
1515
const { isEmpty, sortBy, every, isFunction } = require('lodash');
1616
const { stringify } = require('qs');
1717

18+
const debug = debuglog('ladjs:i18n');
19+
1820
const punycodedTlds = tlds.map((tld) => toASCII(tld));
1921

2022
class I18N {

0 commit comments

Comments
 (0)