mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
cleanup
This commit is contained in:
@@ -3096,7 +3096,7 @@ pub const Bundler = struct {
|
||||
);
|
||||
}
|
||||
|
||||
if (FeatureFlags.tracing) {
|
||||
if (FeatureFlags.tracing and bundler.options.log.level == .info) {
|
||||
Output.prettyErrorln(
|
||||
"<r><d>\n---Tracing---\nResolve time: {d}\nParsing time: {d}\n---Tracing--\n\n<r>",
|
||||
.{
|
||||
|
||||
@@ -298,9 +298,10 @@ pub const Output = struct {
|
||||
return print(fmt, args);
|
||||
}
|
||||
|
||||
pub const debug = if (Environment.isDebug) _debug else _noop;
|
||||
|
||||
fn _noop(comptime _: string, _: anytype) void {}
|
||||
pub inline fn debug(comptime fmt: string, args: anytype) void {
|
||||
if (comptime Environment.isRelease) return;
|
||||
return prettyErrorln("\n<d>DEBUG:<r> " ++ fmt, args);
|
||||
}
|
||||
|
||||
pub fn _debug(comptime fmt: string, args: anytype) void {
|
||||
std.debug.assert(source_set);
|
||||
|
||||
Reference in New Issue
Block a user