mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 19:08:50 +00:00
Reduce log level for loading tsconfig.json extends message
This commit is contained in:
@@ -703,7 +703,19 @@ pub const Log = struct {
|
||||
};
|
||||
}
|
||||
|
||||
pub fn addVerboseFmt(log: *Log, source: ?*const Source, l: Loc, allocator: std.mem.Allocator, comptime text: string, args: anytype) !void {
|
||||
if (!Kind.shouldPrint(.verbose, log.level)) return;
|
||||
|
||||
@setCold(true);
|
||||
try log.addMsg(.{
|
||||
.kind = .verbose,
|
||||
.data = try rangeData(source, Range{ .loc = l }, allocPrint(allocator, text, args) catch unreachable).cloneLineText(log.clone_line_text, log.msgs.allocator),
|
||||
});
|
||||
}
|
||||
|
||||
pub fn addVerbose(log: *Log, source: ?*const Source, loc: Loc, text: string) !void {
|
||||
if (!Kind.shouldPrint(.verbose, log.level)) return;
|
||||
|
||||
@setCold(true);
|
||||
try log.addMsg(.{
|
||||
.kind = .verbose,
|
||||
|
||||
@@ -3887,7 +3887,7 @@ pub const Resolver = struct {
|
||||
// not sure why this needs cwd but we'll just pass in the dir of the tsconfig...
|
||||
var abs_path = ResolvePath.joinAbsStringBuf(ts_dir_name, bufs(.tsconfig_path_abs), &[_]string{ ts_dir_name, current.extends }, .auto);
|
||||
var parent_config_maybe = r.parseTSConfig(abs_path, 0) catch |err| {
|
||||
r.log.addWarningFmt(null, logger.Loc.Empty, r.allocator, "{s} loading tsconfig.json extends {}", .{ @errorName(err), strings.QuotedFormatter{
|
||||
r.log.addVerboseFmt(null, logger.Loc.Empty, r.allocator, "{s} loading tsconfig.json extends {}", .{ @errorName(err), strings.QuotedFormatter{
|
||||
.text = abs_path,
|
||||
} }) catch {};
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user