warn instead of error for missing categories

This commit is contained in:
Jeremy Wall 2022-07-21 16:34:18 -04:00
parent 71a4e093b9
commit dc218bfaa8

View File

@ -15,7 +15,7 @@ use std::collections::{BTreeMap, BTreeSet};
use reqwasm::http; use reqwasm::http;
use sycamore::prelude::*; use sycamore::prelude::*;
use tracing::{debug, error, info, instrument}; use tracing::{debug, error, info, instrument, warn};
use web_sys::{window, Storage}; use web_sys::{window, Storage};
use recipes::{parse, Ingredient, IngredientAccumulator, Recipe}; use recipes::{parse, Ingredient, IngredientAccumulator, Recipe};
@ -93,7 +93,7 @@ impl AppService {
.map_err(|e| format!("{:?}", e))?; .map_err(|e| format!("{:?}", e))?;
} }
Ok(None) => { Ok(None) => {
error!("There is no category file"); warn!("There is no category file");
} }
Err(e) => { Err(e) => {
error!("{}", e); error!("{}", e);