Improved logging for server side add new node

This commit is contained in:
Logan Cusano
2023-06-18 22:25:41 -04:00
parent 255b1282ec
commit d2e9f286e2

View File

@@ -148,7 +148,9 @@ exports.addNewNode = async (nodeObject, callback) => {
// Call back the first (and theoretically only) row
// 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