Skip to content

Commit

Permalink
Cleanup javascript console log messages (#3706)
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat committed Sep 21, 2022
1 parent 829a9d8 commit db3d9b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions InvenTree/InvenTree/static/script/inventree/inventree.js
Expand Up @@ -207,13 +207,12 @@ function enableDragAndDrop(element, url, options) {
formData,
{
success: function(data, status, xhr) {
console.log('Uploaded file via drag-and-drop');
if (options.success) {
options.success(data, status, xhr);
}
},
error: function(xhr, status, error) {
console.log('File upload failed');
console.error('File upload failed');
if (options.error) {
options.error(xhr, status, error);
}
Expand All @@ -222,7 +221,7 @@ function enableDragAndDrop(element, url, options) {
}
);
} else {
console.log('Ignoring drag-and-drop event (not a file)');
console.warn('Ignoring drag-and-drop event (not a file)');
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion InvenTree/templates/js/dynamic/nav.js
Expand Up @@ -154,7 +154,7 @@ function enableBreadcrumbTree(options) {
var label = options.label;

if (!label) {
console.log('ERROR: enableBreadcrumbTree called without supplying label');
console.error('enableBreadcrumbTree called without supplying label');
return;
}

Expand Down

0 comments on commit db3d9b5

Please sign in to comment.