From 21e24d597fe7f7bfff5a587540784482a301be0a Mon Sep 17 00:00:00 2001 From: Renard Date: Mon, 9 Mar 2020 12:10:16 -0300 Subject: Consola solo en development build --- src/App.js | 6 +++--- src/Chat.js | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/App.js b/src/App.js index 9d70608..71ce407 100644 --- a/src/App.js +++ b/src/App.js @@ -45,7 +45,7 @@ class App extends Component { return prevCount === this.streamCount; } - log(object) { + debug(object) { if (process.env.NODE_ENV === "development") { console.log(object); } @@ -108,7 +108,7 @@ class App extends Component { fetch("https://bienvenidoainternet.org:8443/status-json.xsl") .then(response => response.json()) .then(result => { - this.log(result); + this.debug(result); this.checkStream(result); const source = result.icestats.source; if (source !== undefined) { @@ -179,7 +179,7 @@ class App extends Component { text: `[${stream.listeners}] ${stream.server_name} - ${stream.server_description}` }) ); - console.log(streams); + this.debug(streams); this.setState({ multipleSources: true, streamsAvailable: streams, diff --git a/src/Chat.js b/src/Chat.js index 685524e..a90a5aa 100644 --- a/src/Chat.js +++ b/src/Chat.js @@ -80,7 +80,6 @@ class Chat extends Component { } processChatMessage(line) { - console.log("<< " + line); const args = line.split(":"); switch (args[0]) { case "MSG": -- cgit v1.2.1-18-gbd029