Skip to content

Commit 20cb906

Browse files
wesruvgithub-actions[bot]castastrophe
authored
fix: Update pfelement logging so arrays and objects get printed (#1573) (#1574)
* fix: Updating PFElement.log so it logs arrays and objects Instead of converting them to strings Code actually written by @mwcz, despite being committed by @wesruv Issue #1573 * Update CHANGELOG-1.x.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: [ Cassondra ] <[email protected]>
1 parent 2b9ead2 commit 20cb906

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG-1.x.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.6.1 (2021)
2+
3+
- [](https://github.com/patternfly/patternfly-elements/commit/) fix: Updating PFElement.log (aka this.log) so it logs arrays and objects, instead of converting them to strings
4+
15
# 1.6.0 (2021-04-23)
26

37
- [0a549f8](https://github.com/patternfly/patternfly-elements/commit/0a549f8c54037e01006063800e729d633b515f66) feat: JSDoc preview added for PFElement

elements/pfelement/src/pfelement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class PFElement extends HTMLElement {
5858
* @example this.log("Hello");
5959
*/
6060
log(...msgs) {
61-
PFElement.log(`[${this.tag}${this.id ? `#${this.id}` : ""}]: ${msgs.join(", ")}`);
61+
PFElement.log(`[${this.tag}${this.id ? `#${this.id}` : ""}]`, ...msgs);
6262
}
6363

6464
/**

0 commit comments

Comments
 (0)