add log of user_id

This commit is contained in:
nigel007 2019-06-12 21:33:50 +08:00
parent 393368c38d
commit 917f9a0f2c
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,8 @@ class BlockchainsService
def get_networkids_ports(user)
network_ids = []
ports = []
Rails.logger.info("!!!!!!!!!!!user id is:")
Rails.logger.info(user.id)
bcs = Blockchain.find_by_sql("select network_id, port from blockchains where user_id=#{user.id}")
bcs.each do |bc|
network_ids << bc.network_id unless bc.network_id == nil