Skip to content

Commit 995067b

Browse files
authored
docs: added info on debug flag value precedence (#811)
* docs: added info on debug flag value precedence * fix: formatting
1 parent b56403a commit 995067b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/bundler-plugin-core/src/types.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ export interface Options {
4242
* Enable debug information logs during build-time.
4343
* Enabling this will give you, for example, logs about source maps.
4444
*
45+
* This option also propagates the debug flag to the Sentry CLI by setting
46+
* the `SENTRY_LOG_LEVEL` environment variable to `"debug"` if it's not already set.
47+
* If you have explicitly set `SENTRY_LOG_LEVEL`, this option will be ignored.
48+
*
4549
* @default false
4650
*/
4751
debug?: boolean;

packages/dev-utils/src/generate-documentation-table.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const options: OptionDocumentation[] = [
4141
name: "debug",
4242
type: "boolean",
4343
fullDescription:
44-
"Enable debug information logs during build-time. Enabling this will give you, for example, logs about source maps. Defaults to `false`.",
44+
'Enable debug information logs during build-time. Enabling this will give you, for example, logs about source maps. This option also propagates the debug flag to the Sentry CLI by setting the `SENTRY_LOG_LEVEL` environment variable to `"debug"` if it\'s not already set. If you have explicitly set `SENTRY_LOG_LEVEL`, this option will be ignored. Defaults to `false`.',
4545
},
4646
{
4747
name: "silent",
@@ -114,7 +114,7 @@ urls and absolute/relative paths). If that path doesn't exist, it then looks for
114114
115115
Note: This is mostly helpful for complex builds with custom source map generation. For example, if you put source
116116
maps into a separate directory and rewrite the \`//# sourceMappingURL=\` comment to something other than a relative
117-
directory, sentry will be unable to locate the source maps for a given build artifact. This hook allows you to
117+
directory, sentry will be unable to locate the source maps for a given build artifact. This hook allows you to
118118
implement the resolution process yourself.
119119
120120
Use the \`debug\` option to print information about source map resolution.

0 commit comments

Comments
 (0)