From 8d517ec03790422b70b7c5247068c9918a26fc0a Mon Sep 17 00:00:00 2001 From: slice Date: Sun, 15 Jul 2018 21:21:56 -0700 Subject: [PATCH] make ws recv logs prettier --- priv/frontend/src/components/App.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/priv/frontend/src/components/App.js b/priv/frontend/src/components/App.js index 756b4df..5bf938f 100644 --- a/priv/frontend/src/components/App.js +++ b/priv/frontend/src/components/App.js @@ -85,7 +85,13 @@ export default class App extends Component { this.websocket.onmessage = (message) => { const { data } = message const parsed = JSON.parse(data) - log('ws recv:', parsed) + + console.log( + '%c>>>%c', + 'color: hsla(320, 100%, 50%, 1); font-weight: bold', + 'color: inherit; font-weight: inherit', + parsed, + ) this.handlePacket(parsed) }