【发布时间】:2019-11-11 15:11:06
【问题描述】:
logger.info("Error Response:[" + extraInfo.session("username").asOption[String]
+ "], Code:[" + statusCode + "], Response Body:[" + extraInfo.response.body.string
+ "], Token:[" + extraInfo.session("cspAuthToken").asOption[String]
+ "], Org id:[" + extraInfo.session("defaultOrgId").asOption[String]
+ "], Started At: [" + startedAt + "], Current time:[" + System.nanoTime()
+ "], Total Seconds:[" + totalSecondsPassed + "]")
这是在 scala 版本 2.12.3 和更高版本中编写的代码,将 scala 版本升级到版本到 2.13.1 我收到此错误:
Sorry, type inference was unable to figure out the type. You need to provide it explicitly.
logger.info("Error Response:[" + extraInfo.session("username").asOption[String]
【问题讨论】:
-
你用的是什么版本的加特林?
-
我使用的是 gatling 版本 2.3.0
标签: scala gatling scala-gatling