Skip to content

Commit e35932f

Browse files
committed
maint(pat date picker): Use logging framework instead of console.log.
1 parent c5942d2 commit e35932f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/pat/date-picker/date-picker.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
/* pat-date-picker - Polyfill for input type=date */
22
import $ from "jquery";
33
import Base from "../../core/base";
4+
import logging from "../../core/logging";
45
import Parser from "../../core/parser";
56
import dom from "../../core/dom";
67
import events from "../../core/events";
78
import utils from "../../core/utils";
89

10+
const log = logging.getLogger("date-picker");
11+
912
export const parser = new Parser("date-picker");
1013
parser.addArgument("behavior", "styled", ["native", "styled"]);
1114
parser.addArgument("week-numbers", [], ["show", "hide"]);
@@ -162,9 +165,7 @@ export default Base.extend({
162165
const response = await fetch(this.options.i18n);
163166
config.i18n = await response.json();
164167
} catch {
165-
console.error(
166-
`date-picker could not load i18n for ${this.options.i18n}`
167-
);
168+
log.error(`date-picker could not load i18n for ${this.options.i18n}`);
168169
}
169170
}
170171
this.pikaday = new Pikaday(config);

0 commit comments

Comments
 (0)