
Research
Node.js Fixes AsyncLocalStorage Crash Bug That Could Take Down Production Servers
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.
@hatsy/log-z-request
Advanced tools
Request logging by @run-z/log-z logger.
Contains a ZLogging capability that provides a request logger means containing ZLogger instance for handlers.
The log messages are actually written to the log under certain conditions. E.g. when request processing error occurred, error logged, or immediate logging triggered explicitly. Once immediate logging triggered, all log messages for the log are recorded to the log, as well as all messages logged after that.
To trigger immediate logging add immediate property with truthy value to log message details like this:
context.log.info('Immediate message', zlogDetails({ immediate: true }));
import { httpListener } from '@hatsy/hatsy';
import { ZLogging } from '@hatsy/log-z-request';
import { Rendering } from '@hatsy/router';
import { logZAtopOf, logZTimestamp, logZWithDetails, zlogDetails } from '@run-z/log-z';
import { logZToStream } from '@run-z/log-z/node';
import { createServer } from 'http';
const server = createServer(httpListener(
{
handleBy(handler) {
// Set up logging before request processing.
return ZLogging.with({
by: logZTimestamp( // Log timestamp.
logZToStream(process.stdout), // Log to standard output.
),
forRequest(logger, { request: { method, url } }) {
return logZWithDetails(
{
method, // Add request method to log message details.
url, // Add request URL to log message details.
},
logZAtopOf(logger), // Create child logger per request.
);
},
}).for(handler);
},
},
Rendering.for(({ log, renderJson }) => {
// Log immeditely instead of when error occurrred.
log.info('Hello!', zlogDetails({ immediate: true }));
renderJson({ hello: 'World!' });
}),
));
FAQs
Hatsy request logger
The npm package @hatsy/log-z-request receives a total of 10 weekly downloads. As such, @hatsy/log-z-request popularity was classified as not popular.
We found that @hatsy/log-z-request demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.

Research
/Security News
A malicious Chrome extension steals newly created MEXC API keys, exfiltrates them to Telegram, and enables full account takeover with trading and withdrawal rights.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.