Skip to content

Commit f4c9d6e

Browse files
committed
Ooops
1 parent ebd46d2 commit f4c9d6e

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

src/deno_dir.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,11 @@ impl DenoDir {
149149
if module_name.ends_with(".ts") || module_name.ends_with(".js") {
150150
return try_extension("");
151151
}
152-
println!("Trying {}.ts...", module_name);
152+
debug!("Trying {}.ts...", module_name);
153153
if let Ok(v) = try_extension(".ts") {
154154
return Ok(v);
155155
}
156-
println!("Trying {}.js...", module_name);
156+
debug!("Trying {}.js...", module_name);
157157
try_extension(".js")
158158
} else if module_name.starts_with(ASSET_PREFIX) {
159159
panic!("Asset resolution should be done in JS, not Rust.");
@@ -176,11 +176,11 @@ impl DenoDir {
176176
if module_name.ends_with(".ts") || module_name.ends_with(".js") {
177177
return try_extension("");
178178
}
179-
println!("Trying {}.ts...", module_name);
179+
debug!("Trying {}.ts...", module_name);
180180
if let Ok(v) = try_extension(".ts") {
181181
return Ok(v);
182182
}
183-
println!("Trying {}.js...", module_name);
183+
debug!("Trying {}.js...", module_name);
184184
try_extension(".js")
185185
}
186186
}

tests/015_import_no_ext.out

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
Trying /Users/kevinqian/Desktop/Programming/Deno/deno/tests/015_import_no_ext.ts...
2-
Trying /Users/kevinqian/Desktop/Programming/Deno/deno/tests/subdir/mod3.ts...
3-
Trying /Users/kevinqian/Desktop/Programming/Deno/deno/tests/subdir/mod4.ts...
4-
Trying /Users/kevinqian/Desktop/Programming/Deno/deno/tests/subdir/mod4.js...
5-
Trying http://localhost:4545/tests/subdir/mod2.ts...
61
Downloading http://localhost:4545/tests/subdir/mod2.ts
7-
Trying /Users/kevinqian/Desktop/Programming/Deno/deno/tests/subdir/print_hello.ts...
82
Downloading http://localhost:4545/tests/subdir/print_hello.ts
93
true
104
[Function: printHello]

0 commit comments

Comments
 (0)