Skip to content

Commit 2393e9b

Browse files
author
Matéo Fernandez
committed
feat(log): add info log when starting to read html input file
1 parent 5409c3d commit 2393e9b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/parser/html.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use super::{InputParser, InputParserError};
22
use crate::excel::{Cell, CellValue, WorkbookDto, WorksheetDto};
33
use scraper::{Html, Selector};
44
use std::{fs, path::PathBuf};
5+
use tracing::info;
56

67
pub struct HtmlParser;
78

@@ -11,6 +12,7 @@ impl HtmlParser {
1112
}
1213

1314
fn parse_from_file(&self, filepath: PathBuf) -> Result<WorkbookDto, HtmlError> {
15+
info!("Reading html");
1416
let html = fs::read_to_string(filepath).map_err(HtmlError::FileNotFound)?;
1517

1618
let document = Html::parse_document(&html);

0 commit comments

Comments
 (0)