chore: clean up debug logging

This commit is contained in:
Matthew Raymer
2025-08-18 07:44:26 +00:00
parent f85c190557
commit f2026bb921
2 changed files with 4 additions and 30 deletions

View File

@@ -124,17 +124,12 @@ export class ProfileService {
async deleteProfile(activeDid: string): Promise<boolean> {
try {
const headers = await getHeaders(activeDid);
logger.debug("Attempting to delete profile for DID:", activeDid);
logger.debug("Using partner API server:", this.partnerApiServer);
logger.debug("Request headers:", headers);
const url = `${this.partnerApiServer}/api/partner/userProfile`;
logger.debug("DELETE request URL:", url);
const response = await this.axios.delete(url, { headers });
const response = await this.axios.delete(
`${this.partnerApiServer}/api/partner/userProfile`,
{ headers },
);
if (response.status === 200 || response.status === 204) {
logger.debug("Profile deleted successfully");
return true;
} else {
logger.error("Unexpected response status when deleting profile:", {
@@ -156,7 +151,6 @@ export class ProfileService {
// Handle specific HTTP status codes
if (response.status === 204) {
logger.debug("Profile deleted successfully (204 No Content)");
return true; // 204 is success for DELETE operations
} else if (response.status === 404) {
logger.warn("Profile not found - may already be deleted");