chore: migrate console logs to logging service (#10608)

This commit is contained in:
Evan Rusackas
2020-08-16 20:20:47 -07:00
committed by GitHub
parent ca9ca99510
commit 08211953b2
7 changed files with 13 additions and 10 deletions

View File

@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
/* eslint no-console: 0 */
import { SupersetClient } from '@superset-ui/connection';
import parseCookie from 'src/utils/parseCookie';
import { logging } from '@superset-ui/core';
export default function setupClient() {
const csrfNode = document.querySelector('#csrf_token');
@@ -34,6 +34,6 @@ export default function setupClient() {
})
.init()
.catch(error => {
console.warn('Error initializing SupersetClient', error);
logging.warn('Error initializing SupersetClient', error);
});
}