Skip to content

Commit a775a65

Browse files
committed
fix: logger init twice
1 parent 4e0ab0b commit a775a65

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/main.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ fn main() {
4848
.quiet(cli.quiet)
4949
.verbosity(cli.verbose as usize);
5050
cli.logger
51-
.timestamp(stderrlog::Timestamp::Off)
51+
.timestamp(stderrlog::Timestamp::Microsecond)
5252
.init()
5353
.unwrap();
5454
match cli.command {
@@ -247,11 +247,6 @@ impl Cli {
247247
utils::plc_new::init_package(name);
248248
}
249249
pub fn lsp(&mut self) {
250-
self.logger
251-
.timestamp(stderrlog::Timestamp::Microsecond)
252-
.init()
253-
.unwrap();
254-
255250
#[cfg(not(target_arch = "wasm32"))]
256251
start_lsp().unwrap();
257252
}
@@ -263,11 +258,6 @@ impl Cli {
263258
return;
264259
}
265260

266-
self.logger
267-
.timestamp(stderrlog::Timestamp::Off)
268-
.init()
269-
.unwrap();
270-
271261
let db = Database::default();
272262
let filepath = Path::new(&name);
273263
let abs = crate::utils::canonicalize(filepath).unwrap();

0 commit comments

Comments
 (0)