1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Enable websocket debugging.

This commit is contained in:
Cedric Beust 2017-02-09 11:17:05 -08:00
parent 8deaa65a3d
commit 3c58a93d45
2 changed files with 5 additions and 3 deletions

View file

@ -104,9 +104,7 @@ val kobaltPluginApi = project {
"com.squareup.retrofit2:converter-gson:${Versions.retrofit}",
"com.beust:jcommander:1.48",
"org.eclipse.jgit:org.eclipse.jgit:4.5.0.201609210915-r",
// "org.slf4j:slf4j-nop:${Versions.slf4j}",
// "org.slf4j:slf4j-api:${Versions.slf4j}",
"org.slf4j:slf4j-simple:${Versions.slf4j}",
*mavenResolver("api", "spi", "util", "impl", "connector-basic", "transport-http", "transport-file"),
"org.apache.maven:maven-aether-provider:3.3.9"
)

View file

@ -21,6 +21,10 @@ import javax.annotation.Nullable
*
* The callbacks are used to initialize and clean up the state before and after each command, so that Kobalt's state
* can be properly reset, making the server reentrant.
*
* To enable websocket debugging, launch with:
* -Dorg.slf4j.simpleLogger.defaultLogLevel=debug
* More logging documentation: https://www.slf4j.org/apidocs/org/slf4j/impl/SimpleLogger.html
*/
class KobaltServer @Inject constructor(@Assisted val force: Boolean, @Assisted @Nullable val givenPort: Int?,
@Assisted val initCallback: (String) -> List<Project>,