Fixed a Bug, Add node failed

The new node was having the foreign-id not set
Reworked logging for better service check