add debug

This commit is contained in:
sulennnn 2019-09-29 15:37:17 +08:00
parent e4fffdd18f
commit 91adaa1aa6
1 changed files with 10 additions and 7 deletions

View File

@ -159,18 +159,21 @@ module Mobile
# add by qiubing end
end
# {status:0, result:result}
Rails.logger.info("status: ", 0)
Rails.logger.info("result: ", result)
Rails.logger.info("modificationLines: ", modificationLines)
Rails.logger.info("eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeerror!!!")
Rails.logger.info(0)
Rails.logger.info(result)
Rails.logger.info(modificationLines)
{status:0, result:result, modificationLines:modificationLines}
else
Rails.logger.info("status: ", 1)
Rails.logger.info("message: ", 'the project did\'t exist or has been deleted')
Rails.logger.info("eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeerror!!!")
Rails.logger.info(1)
Rails.logger.info('the project did\'t exist or has been deleted')
{status:1, message: 'the project did\'t exist or has been deleted' }
end
else
Rails.logger.info("status: ", 1)
Rails.logger.info("message: ", 'the project did\'t exist or has been deleted')
Rails.logger.info("eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeerror!!!")
Rails.logger.info(1)
Rails.logger.info('the project did\'t exist or has been deleted')
{status:1, message: 'the project did\'t exist or has been deleted' }
end
end