device: When registering, print the uuid

This restores the behavior from before #911,
which is useful from some users.

Closes #966

Change-type: patch
Signed-off-by: Pablo Carranza Velez <pablocarranza@gmail.com>
This commit is contained in:
Pablo Carranza Velez 2018-09-13 15:36:46 -07:00 committed by Tim Perry
parent 33a23773d8
commit 8298ba5765

View File

@ -164,6 +164,7 @@ exports.register =
resin.models.application.get(params.application)
options.uuid ? resin.models.device.generateUniqueKey()
(application, uuid) ->
console.info("Registering to #{application.app_name}: #{uuid}")
return resin.models.device.register(application.id, uuid)
)
.get('uuid')