Преглед на файлове

Set libjuice logging properly

Paul-Louis Ageneau преди 5 години
родител
ревизия
47c29f0ec1
променени са 5 файла, в които са добавени 5 реда и са изтрити 4 реда
  1. 1 1
      deps/libjuice
  2. 1 0
      src/icetransport.cpp
  3. 1 1
      test/main.cpp
  4. 1 1
      test/p2p/answerer.cpp
  5. 1 1
      test/p2p/offerer.cpp

+ 1 - 1
deps/libjuice

@@ -1 +1 @@
-Subproject commit 10e14dd4b341569095bb6bbd0dd93fc0b26114bf
+Subproject commit 0901232b037bbb29a79ec3152e047e8898e4983d

+ 1 - 0
src/icetransport.cpp

@@ -51,6 +51,7 @@ IceTransport::IceTransport(const Configuration &config, Description::Role role,
 		PLOG_WARNING << "ICE-TCP is not supported with libjuice";
 	}
 	juice_set_log_handler(IceTransport::LogCallback);
+	juice_set_log_level(JUICE_LOG_LEVEL_VERBOSE);
 
 	juice_config_t jconfig = {};
 	jconfig.cb_state_changed = IceTransport::StateChangeCallback;

+ 1 - 1
test/main.cpp

@@ -29,7 +29,7 @@ using namespace std;
 template <class T> weak_ptr<T> make_weak_ptr(shared_ptr<T> ptr) { return ptr; }
 
 int main(int argc, char **argv) {
-	// InitLogger(LogLevel::Debug);
+	InitLogger(LogLevel::Warning);
 
 	Configuration config;
 	// config.iceServers.emplace_back("stun:stun.l.google.com:19302");

+ 1 - 1
test/p2p/answerer.cpp

@@ -28,7 +28,7 @@ using namespace std;
 template <class T> weak_ptr<T> make_weak_ptr(shared_ptr<T> ptr) { return ptr; }
 
 int main(int argc, char **argv) {
-	// InitLogger(LogLevel::Debug);
+	InitLogger(LogLevel::Warning);
 
 	Configuration config;
 	// config.iceServers.emplace_back("stun.l.google.com:19302");

+ 1 - 1
test/p2p/offerer.cpp

@@ -28,7 +28,7 @@ using namespace std;
 template <class T> weak_ptr<T> make_weak_ptr(shared_ptr<T> ptr) { return ptr; }
 
 int main(int argc, char **argv) {
-	// InitLogger(LogLevel::Debug);
+	InitLogger(LogLevel::Warning);
 
 	Configuration config;
 	// config.iceServers.emplace_back("stun.l.google.com:19302");