Skip to content
This repository was archived by the owner on Apr 13, 2020. It is now read-only.

Commit 74c82ab

Browse files
yradsmikhammtarng
andauthored
added logging for generating config.yaml using spk init (#445)
* added logging for generating config.yaml using spk init * replace string with const for filename Co-authored-by: Michael Tarng <[email protected]>
1 parent cb16c22 commit 74c82ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/config.ts

+2
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,13 @@ export const saveConfiguration = (
266266
targetDir: string = defaultConfigDir()
267267
): void => {
268268
try {
269+
logger.info("Generating config.yaml from yaml file input.");
269270
const data = yaml.safeDump(readYaml<ConfigYaml>(sourceFilePath), {
270271
lineWidth: Number.MAX_SAFE_INTEGER,
271272
});
272273
const targetFile = path.join(targetDir, "config.yaml");
273274
fs.writeFileSync(targetFile, data);
275+
logger.info(`config.yaml was generated and located at ${targetFile}.`);
274276
} catch (err) {
275277
logger.error(
276278
`Error occurred while writing config to default location ${err}`

0 commit comments

Comments
 (0)