File tree Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,6 @@ async function main() {
104
104
}
105
105
106
106
main ( ) . catch ( ( error ) => {
107
- logger . error ( "Failed to start LeetCode MCP Server:" , error ) ;
107
+ logger . error ( "Failed to start LeetCode MCP Server: %s " , error ) ;
108
108
process . exit ( 1 ) ;
109
109
} ) ;
Original file line number Diff line number Diff line change @@ -208,9 +208,7 @@ export class LeetCodeCNService implements LeetCodeBaseService {
208
208
difficulty : q . difficulty
209
209
} ) ) ;
210
210
} catch ( e ) {
211
- logger . error ( "Error parsing similarQuestions:" , {
212
- error : e
213
- } ) ;
211
+ logger . error ( "Error parsing similarQuestions: %s" , e ) ;
214
212
}
215
213
}
216
214
@@ -359,7 +357,7 @@ export class LeetCodeCNService implements LeetCodeBaseService {
359
357
* @returns Promise resolving to the solution detail data
360
358
*/
361
359
async fetchSolutionArticleDetail ( slug : string ) : Promise < any > {
362
- const data = await this . leetCodeApi
360
+ return await this . leetCodeApi
363
361
. graphql ( {
364
362
query : SOLUTION_ARTICLE_DETAIL_QUERY ,
365
363
variables : {
@@ -369,8 +367,6 @@ export class LeetCodeCNService implements LeetCodeBaseService {
369
367
. then ( ( res ) => {
370
368
return res . data ?. solutionArticle ;
371
369
} ) ;
372
- logger . info ( data ) ;
373
- return data ;
374
370
}
375
371
376
372
/**
Original file line number Diff line number Diff line change @@ -177,9 +177,7 @@ export class LeetCodeGlobalService implements LeetCodeBaseService {
177
177
difficulty : q . difficulty
178
178
} ) ) ;
179
179
} catch ( e ) {
180
- logger . error ( "Error parsing similarQuestions:" , {
181
- error : e
182
- } ) ;
180
+ logger . error ( "Error parsing similarQuestions: %s" , e ) ;
183
181
}
184
182
}
185
183
You can’t perform that action at this time.
0 commit comments