Skip to content

Commit

Permalink
fix: move all messages to debug log level (#703)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra authored Nov 21, 2022
1 parent e0b28ba commit 9f444c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion src/get/getReleaseInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const getReleaseInfo = async (version, cacheDir, manifestUrl) => {
await access(`${cacheDir}/manifest.json`);
log.debug(`Manifest file already exists locally under ${cacheDir}`);
} catch (e) {
log.error(`Manifest file does not exist locally`);
log.debug(`Manifest file does not exist locally`);
log.debug(`Downloading latest manifest file under ${cacheDir}`);
const data = await getManifest(manifestUrl);
await writeFile(`${cacheDir}/manifest.json`, data.slice(9));
Expand Down
5 changes: 0 additions & 5 deletions src/log.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { cwd } from "node:process";
import { createLogger, format, transports } from "winston";

const { combine, timestamp, printf } = format;
Expand All @@ -10,10 +9,6 @@ const customFormat = printf(({ level, message, timestamp }) => {
export const log = createLogger({
format: combine(timestamp(), customFormat),
transports: [
new transports.File({
filename: `${cwd()}/nwbuild.log`,
level: "info",
}),
new transports.Console({
level: "info",
}),
Expand Down

0 comments on commit 9f444c9

Please sign in to comment.