From 64b41508d4590e3271a956b9f7d7f3fff601ca6a Mon Sep 17 00:00:00 2001 From: gohoski Date: Mon, 6 Jan 2025 06:08:04 +0300 Subject: [PATCH] Remove unnecessary logging --- README.md | 2 +- src/lib/SunoApi.ts | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/README.md b/README.md index 1f1066e..37bebc1 100644 --- a/README.md +++ b/README.md @@ -329,7 +329,7 @@ You can integrate Suno AI as a tool/plugin/action into your AI agent. There are four ways you can support this project: -1. Fork and Submit Pull Requests: We welcome any PRs that enhances the functionality, APIs, response time and availability. You can also help us just by translating this README into your language—any help for this project is welcome! +1. Fork and Submit Pull Requests: We welcome any PRs that enhance the functionality, APIs, response time and availability. You can also help us just by translating this README into your language—any help for this project is welcome! 2. Open Issues: We appreciate reasonable suggestions and bug reports. 3. Donate: If this project has helped you, consider buying us a coffee using the Sponsor button at the top of the project. Cheers! ☕ 4. Spread the Word: Recommend this project to others, star the repo, or add a backlink after using the project. diff --git a/src/lib/SunoApi.ts b/src/lib/SunoApi.ts index a174008..a199ae4 100644 --- a/src/lib/SunoApi.ts +++ b/src/lib/SunoApi.ts @@ -156,7 +156,6 @@ class SunoApi { const newToken = renewResponse.data.jwt; // Update Authorization field in request header with the new JWT token this.currentToken = newToken; - logger.info(this.currentToken); } /** @@ -278,9 +277,6 @@ class SunoApi { const page = await browser.newPage(); await page.goto('https://suno.com/create', { referer: 'https://www.google.com/', waitUntil: 'domcontentloaded', timeout: 0 }); - page.on('request', request => console.log('>>', request.method(), request.url())); - page.on('response', response => console.log('<<', response.status(), response.url())); - logger.info('Waiting for Suno interface to load'); await page.locator('.react-aria-GridList').waitFor({ timeout: 60000 });