Skip to content

Commit

Permalink
better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tanneberger committed Aug 20, 2024
1 parent 36845f7 commit d24aa89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/blog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use rst_renderer::render_html;
use serde::de::Error;
use serde::{Deserialize, Deserializer, Serialize, Serializer};
use time::Date;
use tracing::info;

use crate::lang::Language;

Expand Down Expand Up @@ -85,6 +86,7 @@ impl Blog {

let is_rst_file = file_name.ends_with(".rst");

info!("reading blog post: {} is rst: {}", &file_name, &is_rst_file);
let (idx, lang, slug) = parse_file_name(file_name)?;

let body = if is_rst_file {
Expand Down
2 changes: 2 additions & 0 deletions src/news.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use rst_renderer::render_html;
use serde::de::Error;
use serde::{Deserialize, Deserializer, Serialize, Serializer};
use time::Date;
use tracing::info;

use crate::lang::Language;

Expand Down Expand Up @@ -83,6 +84,7 @@ impl News {
continue;
}

info!("reading news post: {} is rst: {}", &file_name, &is_rst_file);
let is_rst_file = file_name.ends_with(".rst");

let (idx, lang, slug) = parse_file_name(file_name)?;
Expand Down

0 comments on commit d24aa89

Please sign in to comment.