Clean up some extraneous output in release mode

This commit is contained in:
Grant Limberg 2022-01-05 11:55:47 -08:00
parent 084727c54a
commit 953e62f103
No known key found for this signature in database
GPG key ID: 2BA62CCABBB4095A
2 changed files with 2 additions and 7 deletions

View file

@ -1659,15 +1659,9 @@ public:
} else if (ps[0] == "sso") {
// 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* 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);
Mutex::Lock l(_nets_m);
if (_nets.find(id) != _nets.end()) {

View file

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