diff options
author | Li Haoyi <haoyi.li@databricks.com> | 2019-09-16 22:31:03 +0800 |
---|---|---|
committer | Li Haoyi <haoyi.li@databricks.com> | 2019-09-16 22:31:03 +0800 |
commit | bfe26d5a9705011359658c45b364e9b65ce697b5 (patch) | |
tree | 656565b3d147b1837d4cfc1d949e7af8c250f16c /cask/util/src/cask/util/Logger.scala | |
parent | 84ea971b1261919aca7b31635ddc7d0dca830fea (diff) | |
download | cask-bfe26d5a9705011359658c45b364e9b65ce697b5.tar.gz cask-bfe26d5a9705011359658c45b364e9b65ce697b5.tar.bz2 cask-bfe26d5a9705011359658c45b364e9b65ce697b5.zip |
Provide a simple builtin websocket client in `cask.WsClient`
Harmonize the actor-based APIs of `cask.WsClient`/`cask.WsHandler`/`cask.WsActor`, letting them share the same set of `cask.Ws` events
The default implementation of `cask.WsClient` on the JVM spawns one thread per connection, and doesn't really scale to large numbers of connections. For now we just continue using AsyncHttpClient in the load tests. Wrapping AsyncHttpClient in a nice API is TBD
Diffstat (limited to 'cask/util/src/cask/util/Logger.scala')
-rw-r--r-- | cask/util/src/cask/util/Logger.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cask/util/src/cask/util/Logger.scala b/cask/util/src/cask/util/Logger.scala index 8dc3156..2afbb48 100644 --- a/cask/util/src/cask/util/Logger.scala +++ b/cask/util/src/cask/util/Logger.scala @@ -8,6 +8,9 @@ trait Logger { def debug(t: sourcecode.Text[Any])(implicit f: sourcecode.File, line: sourcecode.Line): Unit } object Logger{ + object Console { + implicit object globalLogger extends Console() + } class Console() extends Logger{ def exception(t: Throwable): Unit = t.printStackTrace() |