Skip to content

Commit

Permalink
docs(site): mention verbose logging
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMason committed Feb 20, 2023
1 parent cc67c2f commit f0869db
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
10 changes: 10 additions & 0 deletions site/docs/guide/troubleshooting.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
id: troubleshooting
title: Troubleshooting
---

Verbose logging can be enabled by setting the following environment variable:

```bash
SYNCPACK_VERBOSE=true syncpack list
```
2 changes: 1 addition & 1 deletion site/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
const sidebars = {
docs: {
'Introduction': ['installation', 'config-file', 'github-action'],
'Guides': ['guide/version-groups'],
'Guides': ['guide/version-groups', 'guide/troubleshooting'],
'CLI Commands': [
'fix-mismatches',
'format',
Expand Down
7 changes: 6 additions & 1 deletion src/lib/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ export function verbose(...values: unknown[]): void {
...values.map((value) =>
isString(value)
? chalk.yellow(value)
: inspect(value, { showHidden: false, colors: true, depth: 20 }),
: inspect(value, {
colors: true,
compact: true,
depth: 20,
showHidden: false,
}),
),
);
}
Expand Down

0 comments on commit f0869db

Please sign in to comment.