Skip to content

Commit e165b13

Browse files
authored
Fix link to "Setting the Level" section in JS docs (#1555)
1 parent 934b15c commit e165b13

File tree

1 file changed

+2
-2
lines changed
  • src/collections/_documentation/platforms/javascript

1 file changed

+2
-2
lines changed

src/collections/_documentation/platforms/javascript/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ Once you’ve started sending tagged data, you’ll see it show up in a few plac
387387

388388
We’ll automatically index all tags for an event, as well as the frequency and the last time the Sentry SDK has seen a value. Even more so, we keep track of the number of distinct tags and can assist you in determining hotspots for various issues.
389389

390-
### Setting the Level {#level}
390+
### Setting the Level {#setting-the-level}
391391
You can set the severity of an event to one of five values: `fatal`, `error`, `warning`, `info`, and `debug`. `error` is the default, `fatal` is the most severe and `debug` is the least severe.
392392

393393
To set the level out of scope, you can call `captureMessage()` per event:
@@ -610,7 +610,7 @@ Sentry.withScope(function(scope) {
610610
Sentry.captureMessage('This shouldnt happen');
611611
});
612612
```
613-
For more information, see [Setting the Level](#level).
613+
For more information, see [Setting the Level](#setting-the-level).
614614

615615
### Lazy Loading Sentry
616616
We recommend using our bundled CDN version for the browser as explained [here]({% link _documentation/error-reporting/quickstart.md %}?platform=browser#pick-a-client-integration). As noted there, if you want to use `defer`, you can, though keep in mind that any errors which occur in scripts that execute before the browser SDK script executes won’t be caught (because the SDK won’t be initialized yet). Therefore, if you do this, you'll need to a) place the script tag for the browser SDK first, and b) mark it, and all of your other scripts, `defer` (but not `async`), which will guarantee that it’s executed before any of the others.

0 commit comments

Comments
 (0)