Skip to content

Commit 2dd51b5

Browse files
committed
fix(icons): prepare for pr and fix logging
inject logger and throw error instead of debug
1 parent cf0fea8 commit 2dd51b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/icons/ux-icon.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { processDesignAttributes } from '../designs/design-attributes';
88
import { UxIconTheme } from './ux-icon-theme';
99
import IconMap from './ux-icon-map';
1010

11-
@inject(Element, ViewResources, StyleEngine)
11+
@inject(Element, ViewResources, StyleEngine, Logger)
1212
@customElement('ux-icon')
1313
@processAttributes(processDesignAttributes)
1414

@@ -62,7 +62,7 @@ export class UxIcon implements Themable {
6262
// after adding icon sets for said languages such as ios
6363
this.element.innerHTML = iconSet.material;
6464
} else {
65-
this.logger.debug('ux-icon: no matching icon', this.element);
65+
this.logger.error('ux-icon: no matching icon found', this.element);
6666
}
6767
}
6868
}

0 commit comments

Comments
 (0)