mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 20:20:57 +00:00
feat(core,cli): migrate console.debug to debugLogger (M3 Phase 1-3)
This commit is contained in:
parent
ba2824b0b0
commit
3959b73bce
63 changed files with 554 additions and 538 deletions
|
|
@ -6,6 +6,9 @@
|
|||
|
||||
import { execSync } from 'node:child_process';
|
||||
import { ProxyAgent } from 'undici';
|
||||
import { createDebugLogger } from '@qwen-code/qwen-code-core';
|
||||
|
||||
const debugLogger = createDebugLogger('GIT');
|
||||
|
||||
/**
|
||||
* Checks if a directory is within a git repository hosted on GitHub.
|
||||
|
|
@ -24,7 +27,7 @@ export const isGitHubRepository = (): boolean => {
|
|||
return pattern.test(remotes);
|
||||
} catch (_error) {
|
||||
// If any filesystem error occurs, assume not a git repo
|
||||
console.debug(`Failed to get git remote:`, _error);
|
||||
debugLogger.debug(`Failed to get git remote:`, _error);
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
|
@ -83,7 +86,7 @@ export const getLatestGitHubRelease = async (
|
|||
}
|
||||
return releaseTag;
|
||||
} catch (_error) {
|
||||
console.debug(
|
||||
debugLogger.debug(
|
||||
`Failed to determine latest qwen-code-action release:`,
|
||||
_error,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue