Skip to content

Commit 9f444c9

Browse files
fix: move all messages to debug log level (#703)
1 parent e0b28ba commit 9f444c9

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/get/getReleaseInfo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const getReleaseInfo = async (version, cacheDir, manifestUrl) => {
1818
await access(`${cacheDir}/manifest.json`);
1919
log.debug(`Manifest file already exists locally under ${cacheDir}`);
2020
} catch (e) {
21-
log.error(`Manifest file does not exist locally`);
21+
log.debug(`Manifest file does not exist locally`);
2222
log.debug(`Downloading latest manifest file under ${cacheDir}`);
2323
const data = await getManifest(manifestUrl);
2424
await writeFile(`${cacheDir}/manifest.json`, data.slice(9));

src/log.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { cwd } from "node:process";
21
import { createLogger, format, transports } from "winston";
32

43
const { combine, timestamp, printf } = format;
@@ -10,10 +9,6 @@ const customFormat = printf(({ level, message, timestamp }) => {
109
export const log = createLogger({
1110
format: combine(timestamp(), customFormat),
1211
transports: [
13-
new transports.File({
14-
filename: `${cwd()}/nwbuild.log`,
15-
level: "info",
16-
}),
1712
new transports.Console({
1813
level: "info",
1914
}),

0 commit comments

Comments
 (0)