logger catagorizing libs
This commit is contained in:
parent
7a8e542ada
commit
4726a85cf3
12 changed files with 35 additions and 36 deletions
|
|
@ -108,7 +108,7 @@ export class HttpClient {
|
|||
const timeoutPromise = new Promise<never>((_, reject) => {
|
||||
timeoutId = setTimeout(() => {
|
||||
const elapsed = Date.now() - startTime;
|
||||
this.logger?.debug('Request timeout triggered', {
|
||||
this.logger?.warn('Request timeout triggered', {
|
||||
url: config.url,
|
||||
method: config.method,
|
||||
timeout,
|
||||
|
|
@ -142,7 +142,7 @@ export class HttpClient {
|
|||
return response;
|
||||
} catch (error) {
|
||||
const elapsed = Date.now() - startTime;
|
||||
this.logger?.debug('Adapter failed successful', {
|
||||
this.logger?.debug('Adapter request failed', {
|
||||
url: config.url,
|
||||
elapsedMs: elapsed,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@ export class ProxyManager {
|
|||
switch (proxy.protocol) {
|
||||
case 'socks4':
|
||||
case 'socks5':
|
||||
// console.log(`Using SOCKS proxy: ${proxyUrl}`);
|
||||
return new SocksProxyAgent(proxyUrl);
|
||||
case 'http':
|
||||
return new HttpProxyAgent(proxyUrl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue