Skip to content

Commit

Permalink
logger
Browse files Browse the repository at this point in the history
  • Loading branch information
T-256 authored Jan 9, 2025
1 parent 25bcdd4 commit bb26de8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ async function validateUsingExecutable(executable: string, strategy: string) {
const message = `Skip unsupported executable from ${strategy}: ${executable} (Reqiuired at least ${versionToString(
MINIMUM_SUPPORTED_EXECUTABLE_VERSION,
)}, but found ${versionToString(ruffVersion)} instead)`;
traceError(message);
logger.error(message);
return false;
}
traceInfo(`Using ${strategy}: ${executable}`);
logger.info(`Using ${strategy}: ${executable}`);
return true;
} catch (ex) {
traceInfo(`Skip invalid executable from ${strategy}: ${executable}`);
logger.info(`Skip invalid executable from ${strategy}: ${executable}`);
return false;
}
}
Expand Down

0 comments on commit bb26de8

Please sign in to comment.