refactor: disable spammy project manager log message
This commit is contained in:
parent
a404f6e768
commit
82586bbb0c
1 changed files with 3 additions and 2 deletions
|
@ -155,10 +155,11 @@ const Process = struct {
|
|||
|
||||
fn query_recent_files(self: *Process, from: tp.pid_ref, project_directory: []const u8, max: usize, query: []const u8) error{ OutOfMemory, Exit }!void {
|
||||
const project = if (self.projects.get(project_directory)) |p| p else return tp.exit("No project");
|
||||
const start_time = std.time.milliTimestamp();
|
||||
// const start_time = std.time.milliTimestamp();
|
||||
// project.sort_files_by_mtime();
|
||||
const matched = try project.query_recent_files(from, max, query);
|
||||
self.logger.print("queried: {s} for {s} match {d} in {d} ms", .{ project_directory, query, matched, std.time.milliTimestamp() - start_time });
|
||||
_ = matched;
|
||||
// self.logger.print("queried: {s} for {s} match {d} in {d} ms", .{ project_directory, query, matched, std.time.milliTimestamp() - start_time });
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue