Skip to content

Commit 1a758a2

Browse files
author
Manus AI
committed
chore: Remove debug console logs from register and verify commands
1 parent 13f8ea4 commit 1a758a2

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

index.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -788,8 +788,6 @@ async function registerCommand(options) {
788788
};
789789

790790
console.log('\nRegistering account...');
791-
console.log(`API Endpoint: ${registrationApi}`);
792-
console.log(`Request Data:`, JSON.stringify(registrationData, null, 2));
793791

794792
// Make API call to register
795793
const response = await axios.post(registrationApi, registrationData);
@@ -807,12 +805,6 @@ async function registerCommand(options) {
807805
process.exit(1);
808806
}
809807
} catch (error) {
810-
console.error('\n[DEBUG] Error caught:', error.message);
811-
if (error.code) console.error('[DEBUG] Error code:', error.code);
812-
if (error.request && !error.response) {
813-
console.error('[DEBUG] No response received from server');
814-
console.error('[DEBUG] Request was made to:', registrationApi);
815-
}
816808
if (error.response && error.response.data) {
817809
const errorData = error.response.data;
818810
if (errorData.errors) {
@@ -878,19 +870,13 @@ async function verifyCommand(options) {
878870
const verificationApi = `${apiHost}/~registry/v1/developer-account/verify`;
879871

880872
console.log('\nVerifying account...');
881-
console.log(`API Endpoint: ${verificationApi}`);
882-
console.log(`Email: ${email}`);
883-
console.log(`Code: ${code}`);
884873

885874
// Make API call to verify
886875
const response = await axios.post(verificationApi, {
887876
email: email,
888877
code: code
889878
});
890879

891-
console.log('\n[DEBUG] Response status:', response.status);
892-
console.log('[DEBUG] Response data:', JSON.stringify(response.data, null, 2));
893-
894880
if (response.data.status === 'success') {
895881
console.log('\n✓ Email verified successfully!');
896882

@@ -908,11 +894,7 @@ async function verifyCommand(options) {
908894
process.exit(1);
909895
}
910896
} catch (error) {
911-
console.error('\n[DEBUG] Error caught:', error.message);
912-
if (error.code) console.error('[DEBUG] Error code:', error.code);
913897
if (error.response) {
914-
console.error('[DEBUG] Response status:', error.response.status);
915-
console.error('[DEBUG] Response data:', JSON.stringify(error.response.data, null, 2));
916898
const errorData = error.response.data;
917899

918900
// Handle different error response formats
@@ -927,8 +909,6 @@ async function verifyCommand(options) {
927909

928910
console.error('\nVerification failed:', errorMessage);
929911
} else if (error.request) {
930-
console.error('[DEBUG] No response received from server');
931-
console.error('[DEBUG] Request was made to:', verificationApi);
932912
console.error('\nVerification failed: No response from server');
933913
} else {
934914
console.error('\nVerification failed:', error.message);

0 commit comments

Comments
 (0)