Log catch errors as console.error

This commit is contained in:
Paulo Gustavo Veiga 2022-02-12 08:39:33 -08:00
parent 8cb9b910f2
commit dd180cf0b7
2 changed files with 1 additions and 3 deletions

View File

@ -44,7 +44,7 @@ export function buildDesigner(options: DesignerOptions): Designer {
`Line: ${lineNo}`,
`Column: ${columnNo}`,
].join(' - ');
console.log(message);
console.error(message);
// Send error to server ...
$.ajax({
@ -58,7 +58,6 @@ export function buildDesigner(options: DesignerOptions): Designer {
mapId: options.mapId,
}),
});
// Open error dialog only in case of mindmap loading errors. The rest of the error are reported but not display the dialog.
// Remove this in the near future.
if (!globalThis.mindmapLoadReady) {

View File

@ -14,7 +14,6 @@ const EditorPage = ({ mapId, ...props }: EditorPropsType): React.ReactElement =>
// Load user locale ...
const userLocale = AppI18n.getUserLocale();
console.log("Locale:" + userLocale.code);
return <>
<Editor {...props} onAction={setActiveDialog} locale={userLocale.code} />