Use console.log in place of console.warn for less warnings

These aren't react warnings, but they are distracting in the logs.
This commit is contained in:
Travis Ralston 2020-04-01 13:59:48 -06:00
parent c0ffa8b59a
commit ba0a9c8439
4 changed files with 8 additions and 8 deletions

View file

@ -92,7 +92,7 @@ export default class WidgetMessaging {
* @return {Promise} To be resolved with screenshot data when it has been generated
*/
getScreenshot() {
console.warn('Requesting screenshot for', this.widgetId);
console.log('Requesting screenshot for', this.widgetId);
return this.messageToWidget({
api: OUTBOUND_API_NAME,
action: "screenshot",
@ -106,12 +106,12 @@ export default class WidgetMessaging {
* @return {Promise} To be resolved with an array of requested widget capabilities
*/
getCapabilities() {
console.warn('Requesting capabilities for', this.widgetId);
console.log('Requesting capabilities for', this.widgetId);
return this.messageToWidget({
api: OUTBOUND_API_NAME,
action: "capabilities",
}).then((response) => {
console.warn('Got capabilities for', this.widgetId, response.capabilities);
console.log('Got capabilities for', this.widgetId, response.capabilities);
return response.capabilities;
});
}