add logger

This commit is contained in:
nigel007 2019-07-25 15:42:48 +08:00
parent 5855087f2d
commit 0a55604178
1 changed files with 3 additions and 0 deletions

View File

@ -7,10 +7,13 @@ class BlockchainProjectClientsService
bpc.project_id = project.id
bpc.user_id = user.id
bpc.node_id = params[:node_id]
Rails.logger.info("!!!!!!node_id是" + params[:node_id])
if bpc.save
Rails.logger.info("save成功")
status = 0
return status, bpc
end
Rails.logger.info("blockchain project clients service中status是" + status.to_s)
return status, nil
end