Skip to content

Commit

Permalink
docs: Update migrating.md debugging (#3220)
Browse files Browse the repository at this point in the history
  • Loading branch information
FossPrime committed Jun 16, 2023
1 parent 71ac655 commit e01eb6a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/guides/migrating.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,17 +240,17 @@ The automatic environment variable substitution in `@feathersjs/configuration` w

The `debug` module has been removed as a direct dependency. This reduces the the client bundle size and allows to support other platforms (like Deno). The original `debug` functionality can now be initialized as follows:

```js
const feathers = require('@feathersjs/feathers')
const debug = require('debug')
```ts
import { feathers } from '@feathersjs/feathers'
import debug from 'debug'

feathers.setDebug(debug)
```

It is also possible to set a custom logger like this:

```js
const feathers = require('@feathersjs/feathers')
```ts
import { feathers } from '@feathersjs/feathers'

const customDebug =
(name) =>
Expand Down

0 comments on commit e01eb6a

Please sign in to comment.