Improved logging for server side add new node
This commit is contained in:
@@ -148,7 +148,9 @@ exports.addNewNode = async (nodeObject, callback) => {
|
|||||||
|
|
||||||
// Call back the first (and theoretically only) row
|
// Call back the first (and theoretically only) row
|
||||||
// Specify 0 so downstream functions don't have to worry about it
|
// Specify 0 so downstream functions don't have to worry about it
|
||||||
return (callback) ? callback(this.getNodeInfoFromId(sqlResponse.insertId)) : this.getNodeInfoFromId(sqlResponse.insertId);
|
const newNode = this.getNodeInfoFromId(sqlResponse.insertId);
|
||||||
|
log.DEBUG("Added new node: ", newNode)
|
||||||
|
return (callback) ? callback(newNode) : newNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Update the known info on a node
|
/** Update the known info on a node
|
||||||
|
|||||||
Reference in New Issue
Block a user