Browse Source

Clean up some extraneous output in release mode

Grant Limberg 3 years ago
parent
commit
953e62f103
2 changed files with 2 additions and 7 deletions
  1. 1 7
      service/OneService.cpp
  2. 1 0
      zeroidc/src/lib.rs

+ 1 - 7
service/OneService.cpp

@@ -1659,15 +1659,9 @@ public:
 
 
 			} else if (ps[0] == "sso") {
 			} else if (ps[0] == "sso") {
 				// SSO redirect handling
 				// SSO redirect handling
-				fprintf(stderr, "sso get\n");
-				fprintf(stderr, "path: %s\n", path.c_str());
-				fprintf(stderr, "body: %s\n", body.c_str());
-
 				const char* state = zeroidc::zeroidc_get_url_param_value("state", path.c_str());
 				const char* state = zeroidc::zeroidc_get_url_param_value("state", path.c_str());
 				const char* nwid = zeroidc::zeroidc_network_id_from_state(state);
 				const char* nwid = zeroidc::zeroidc_network_id_from_state(state);
-				fprintf(stderr, "state: %s\n", state);
-				fprintf(stderr, "nwid: %s\n", nwid);
-
+				
 				const uint64_t id = Utils::hexStrToU64(nwid);
 				const uint64_t id = Utils::hexStrToU64(nwid);
 				Mutex::Lock l(_nets_m);
 				Mutex::Lock l(_nets_m);
 				if (_nets.find(id) != _nets.end()) {
 				if (_nets.find(id) != _nets.end()) {

+ 1 - 0
zeroidc/src/lib.rs

@@ -314,6 +314,7 @@ impl ZeroIDC {
                                 println!("token response??");
                                 println!("token response??");
                             }
                             }
                         } else {
                         } else {
+                            #[cfg(debug_assertions)]
                             println!("waiting to refresh");
                             println!("waiting to refresh");
                         }
                         }
                     } else {
                     } else {