Permalink
Browse files

fix(console): use aurelia-logging's getLogger instead of console

  • Loading branch information...
bas080
bas080 committed Jun 13, 2016
1 parent 70c0f8c commit b17ac8d84605f0e0d5c7998b695536c8945842f8
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/elements/form-fields.js
@@ -1,4 +1,5 @@
import {bindable, bindingMode} from 'aurelia-framework';
import {getLogger} from 'aurelia-logging';

export class FormFieldsCustomElement {
@bindable schema
@@ -10,8 +11,7 @@ export class FormFieldsCustomElement {

attached() {
if (typeof this.model !== 'object') {
// eslint-disable-next-line
console.warn(`model is not an object`);
getLogger('aurelia-form').warn(`model is not an object`);
}
}
}

0 comments on commit b17ac8d

Please sign in to comment.