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:
parent
9bc41c1709
commit
bf57cb209f
@ -60,7 +60,7 @@ module.exports = {
|
|||||||
// Get SSH key detail
|
// Get SSH key detail
|
||||||
app.get("/:id", needsPermission("settings.read"), function(req,res) {
|
app.get("/:id", needsPermission("settings.read"), function(req,res) {
|
||||||
var username = getUsername(req.user);
|
var username = getUsername(req.user);
|
||||||
console.log('username:', username);
|
// console.log('username:', username);
|
||||||
runtime.storage.sshkeys.getSSHKey(username, req.params.id)
|
runtime.storage.sshkeys.getSSHKey(username, req.params.id)
|
||||||
.then(function(data) {
|
.then(function(data) {
|
||||||
res.json({
|
res.json({
|
||||||
@ -80,11 +80,11 @@ module.exports = {
|
|||||||
// Generate a SSH key
|
// Generate a SSH key
|
||||||
app.post("/", needsPermission("settings.write"), function(req,res) {
|
app.post("/", needsPermission("settings.write"), function(req,res) {
|
||||||
var username = getUsername(req.user);
|
var username = getUsername(req.user);
|
||||||
console.log('req.body:', req.body);
|
// console.log('req.body:', req.body);
|
||||||
if ( req.body && req.body.name ) {
|
if ( req.body && req.body.name ) {
|
||||||
runtime.storage.sshkeys.generateSSHKey(username, req.body.email || "", req.body.name, req.body)
|
runtime.storage.sshkeys.generateSSHKey(username, req.body.email || "", req.body.name, req.body)
|
||||||
.then(function(name) {
|
.then(function(name) {
|
||||||
console.log('generate key --- success name:', name);
|
// console.log('generate key --- success name:', name);
|
||||||
res.json({
|
res.json({
|
||||||
name: name
|
name: name
|
||||||
});
|
});
|
||||||
|
@ -43,11 +43,6 @@ function runGitCommand(args,cwd,env) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
child.on('close', function(code) {
|
child.on('close', function(code) {
|
||||||
console.log("===============================================================");
|
|
||||||
console.log("stdout:", stdout);
|
|
||||||
console.log("===============================================================");
|
|
||||||
console.log("stderr:", stderr);
|
|
||||||
console.log("===============================================================");
|
|
||||||
if (code !== 0) {
|
if (code !== 0) {
|
||||||
var err = new Error(stderr);
|
var err = new Error(stderr);
|
||||||
err.stdout = stdout;
|
err.stdout = stdout;
|
||||||
|
Loading…
Reference in New Issue
Block a user