Skip to content
Snippets Groups Projects

Add client verbose logging support

Merged Joe Donofry requested to merge verbose_logging into master
4 files
+ 31
32
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 8
0
@@ -141,6 +141,13 @@ struct Client {
/// @sa set_verify_peer
bool does_verify_peer() { return this->verify_peer_; }
//! Set whether or not to log curl requests verbosely.
/// @sa verbose and also CURLOPT_VERBOSE
void verbose(bool verbose) { this->verbose_logging_ = verbose; }
/// @brief Query whether verbose logging is enabled or not
/// @sa verbose(bool)
bool verbose() { return this->verbose_logging_; }
//! Timeout connection after the specified amount of seconds, if the server
//! stops sending acks.
void connection_timeout(long t) { connection_timeout_ = t; }
@@ -191,6 +198,7 @@ struct Client {
std::atomic<bool> stopped{false};
std::atomic<bool> prevent_new_requests{false};
bool verify_peer_ = true;
bool verbose_logging_ = false;
long connection_timeout_ = 0;
Loading