Replace console.error with beef.debug

This commit is contained in:
Brendan Coles
2014-08-31 02:01:55 +00:00
parent f6eb275f3f
commit a40e8ca8de
2 changed files with 3 additions and 3 deletions

View File

@@ -106,7 +106,7 @@ beef.mitb = {
history.pushState({ Be:"EF" }, title, e.currentTarget);
}
} catch (e) {
console.error('beef.mitb.poisonAnchor - failed to execute: ' + e.message);
beef.debug('beef.mitb.poisonAnchor - failed to execute: ' + e.message);
}
return false;
},
@@ -219,4 +219,4 @@ beef.mitb = {
}
};
beef.regCmp('beef.mitb');
beef.regCmp('beef.mitb');

View File

@@ -79,7 +79,7 @@ beef.updater = {
try {
command();
} catch(e) {
console.error('execute_commands - command failed to execute: ' + e.message);
beef.debug('execute_commands - command failed to execute: ' + e.message);
// prints the command source to be executed, to better trace errors
// beef.client_debug must be enabled in the main config
beef.debug(command.toString());