You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to use @libp2p/logger in the service-worker gateway, logs generated by the service worker were not being logged until I explicitly overrode the @libp2p/logger's forComponent and prefixLogger functions.
You need to import enable from @libp2p/logger and not debug.
Part of the point of wrapping debug with @libp2p/logger is that it allows us to swap out the underlying log implementation without having to change any calling code which is what happened in #2648 - calling through to the underlying implementation directly defeats the whole purpose.
When attempting to use
@libp2p/logger
in the service-worker gateway, logs generated by the service worker were not being logged until I explicitly overrode the@libp2p/logger
'sforComponent
andprefixLogger
functions.see ipfs/service-worker-gateway#395
Repro repo at https://github.com/SgtPooki/libp2p-logger-bug-repro
The text was updated successfully, but these errors were encountered: