From 2ba4d8a2d912ea407ca2dbaf8b92a4d5d82bc27d Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 21 Nov 2018 17:35:28 +0000 Subject: [PATCH] Remove outdated logging & log on failure --- src/Modal.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Modal.js b/src/Modal.js index f7b10041a6..960e0e5c30 100644 --- a/src/Modal.js +++ b/src/Modal.js @@ -51,9 +51,6 @@ const AsyncWrapper = React.createClass({ // https://github.com/vector-im/riot-web/issues/3148 console.log('Starting load of AsyncWrapper for modal'); this.props.prom.then((result) => { - // XXX: temporary logging to try to diagnose - // https://github.com/vector-im/riot-web/issues/3148 - console.log('AsyncWrapper load completed with '+result.displayName); if (this._unmounted) { return; } @@ -63,6 +60,7 @@ const AsyncWrapper = React.createClass({ const component = result.default ? result.default : result; this.setState({component}); }).catch((e) => { + console.warn('AsyncWrapper promise failed', e); this.setState({error: e}); }); },