Skip to content

Commit

Permalink
fix tide logger bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fanzeyi committed Sep 8, 2020
1 parent 27f320c commit af1527b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lares"
version = "0.2.0"
version = "0.2.1"
authors = ["Zeyi Fan <cargo@zeyi.fan>"]
edition = "2018"
description = "Simple RSS Reader Service (Fever API backend)"
Expand Down
7 changes: 1 addition & 6 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ use std::collections::HashMap;
use std::convert::TryInto;
use std::future::Future;
use std::pin::Pin;
use tide::{
log::{self, LevelFilter},
Request,
};
use tide::{log, Request};

use crate::model::{Feed, FeedGroup, Group, Item, ModelExt};
use crate::state::State;
Expand Down Expand Up @@ -233,8 +230,6 @@ fn auth(
}

pub fn make_app(state: State) -> tide::Server<State> {
tide::log::with_level(LevelFilter::Info);

let mut app = tide::with_state(state);
app.with(auth)
.at("/")
Expand Down

0 comments on commit af1527b

Please sign in to comment.