这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion console/src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if (telemetryEnabled) {
}

const onError = error => {
console.log('WebSocket Error for Events' + error);
console.error('WebSocket Error for Events' + error);
};

const onClose = () => {
Expand Down
2 changes: 1 addition & 1 deletion console/src/components/Services/ApiExplorer/Actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ const getStateAfterClearingHistory = state => {
const getRemoteQueries = (queryUrl, cb) => {
fetch(queryUrl)
.then(resp => resp.text().then(cb))
.catch(e => console.log('Invalid query file URL: ', e));
.catch(e => console.error('Invalid query file URL: ', e));
};

const apiExplorerReducer = (state = defaultState, action) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ const saveRenameRelationship = (oldName, newName, tableName, callback) => {
};

const generateRelationshipsQuery = relMeta => {
console.log(relMeta);
if (relMeta.isObjRel) {
const upQuery = {
type: 'create_object_relationship',
Expand Down Expand Up @@ -473,7 +472,6 @@ const getAllUnTrackedRelations = (allSchemas, currentSchema) => {
);
/* Added to ensure that fallback relationship name is created in case of tracking all relationship at once */
table.existingFields[indivObjectRel.relName] = true;
console.log('Called here 2');
const { upQuery, downQuery } = generateRelationshipsQuery(
indivObjectRel
);
Expand All @@ -496,7 +494,6 @@ const getAllUnTrackedRelations = (allSchemas, currentSchema) => {
);
/* Added to ensure that fallback relationship name is created in case of tracking all relationship at once */
table.existingFields[indivArrayRel.relName] = true;
console.log('Called here 1');
const { upQuery, downQuery } = generateRelationshipsQuery(
indivArrayRel
);
Expand Down
4 changes: 2 additions & 2 deletions console/src/utils/websockets.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const establishWebSocketConn = (
conn.onerror = onError;
} else {
// TODO implement a fallback which polls but mimics the interface of a WebSocket Object.
console.log(
console.error(
'This console needs websockets and websockets is not supported by your browser.'
);
alert(
Expand Down Expand Up @@ -88,7 +88,7 @@ export const permanentWebSocketConn = (
onError
);
} catch (err) {
console.log('Failed to establish websocket connection.');
console.error('Failed to establish websocket connection.');
}
tries++;
}
Expand Down