Skip to content

Commit f0869db

Browse files
committed
docs(site): mention verbose logging
1 parent cc67c2f commit f0869db

3 files changed

Lines changed: 17 additions & 2 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
id: troubleshooting
3+
title: Troubleshooting
4+
---
5+
6+
Verbose logging can be enabled by setting the following environment variable:
7+
8+
```bash
9+
SYNCPACK_VERBOSE=true syncpack list
10+
```

site/sidebars.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
const sidebars = {
1616
docs: {
1717
'Introduction': ['installation', 'config-file', 'github-action'],
18-
'Guides': ['guide/version-groups'],
18+
'Guides': ['guide/version-groups', 'guide/troubleshooting'],
1919
'CLI Commands': [
2020
'fix-mismatches',
2121
'format',

src/lib/log.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ export function verbose(...values: unknown[]): void {
1313
...values.map((value) =>
1414
isString(value)
1515
? chalk.yellow(value)
16-
: inspect(value, { showHidden: false, colors: true, depth: 20 }),
16+
: inspect(value, {
17+
colors: true,
18+
compact: true,
19+
depth: 20,
20+
showHidden: false,
21+
}),
1722
),
1823
);
1924
}

0 commit comments

Comments
 (0)