Skip to content

Commit

Permalink
add flag for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jillesvangurp committed Aug 22, 2022
1 parent 1840825 commit 52d7fae
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ interface SearchClientParams {
val user: String?
val password: String?
val ssl: Boolean
val logApiCalls: Boolean

}

Expand All @@ -23,7 +24,8 @@ val SearchClientParams.searchClient get() = SearchClient(
port = port,
user = user,
password = password,
https = ssl
https = ssl,
logging = logApiCalls
)
)

Expand All @@ -45,6 +47,8 @@ fun ArgParser.addClientParams(): SearchClientParams {
)
override val ssl by parser.option(ArgType.Boolean, fullName = "protocol", description = "Use https if true")
.default(false)
override val logApiCalls by parser.option(ArgType.Boolean, fullName = "log-api-calls", description = "Turn on logging for http traffic")
.default(false)
}

}
Expand Down

0 comments on commit 52d7fae

Please sign in to comment.