1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Delete unnecessary logs

This commit is contained in:
Hideki Nakamura 2017-12-16 00:46:05 +09:00
parent 9bc41c1709
commit bf57cb209f
2 changed files with 3 additions and 8 deletions

View File

@ -60,7 +60,7 @@ module.exports = {
// Get SSH key detail
app.get("/:id", needsPermission("settings.read"), function(req,res) {
var username = getUsername(req.user);
console.log('username:', username);
// console.log('username:', username);
runtime.storage.sshkeys.getSSHKey(username, req.params.id)
.then(function(data) {
res.json({
@ -80,11 +80,11 @@ module.exports = {
// Generate a SSH key
app.post("/", needsPermission("settings.write"), function(req,res) {
var username = getUsername(req.user);
console.log('req.body:', req.body);
// console.log('req.body:', req.body);
if ( req.body && req.body.name ) {
runtime.storage.sshkeys.generateSSHKey(username, req.body.email || "", req.body.name, req.body)
.then(function(name) {
console.log('generate key --- success name:', name);
// console.log('generate key --- success name:', name);
res.json({
name: name
});

View File

@ -43,11 +43,6 @@ function runGitCommand(args,cwd,env) {
});
child.on('close', function(code) {
console.log("===============================================================");
console.log("stdout:", stdout);
console.log("===============================================================");
console.log("stderr:", stderr);
console.log("===============================================================");
if (code !== 0) {
var err = new Error(stderr);
err.stdout = stdout;