Skip to content

Commit

Permalink
rename logger.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
zyj committed Oct 19, 2023
1 parent 1479c56 commit 20db334
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/filter.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use crate::{
config::{RequestRule, ResponseRule, RuleAction},
handler_config::HandlerConfig,
loger::STDERR,
logger::STDERR,
};
use slog::debug;
use hickory_proto::{op::LowerQuery, rr::RecordType};
use hickory_resolver::lookup::Lookup;
use slog::debug;

pub fn check_response(
cfg: &HandlerConfig,
Expand Down
8 changes: 4 additions & 4 deletions src/handler.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
use crate::{config::RuleAction, filter, handler_config::HandlerConfig, loger::STDERR};
use crate::{config::RuleAction, filter, handler_config::HandlerConfig, logger::STDERR};
use anyhow::Error;
use async_recursion::async_recursion;
use futures::{
future::{self, MapErr, MapOk},
Future, FutureExt, TryFutureExt,
};
use once_cell::sync::OnceCell;
use slog::{debug, error};
use std::pin::Pin;
use hickory_proto::op::Query;
use hickory_resolver::{
error::{ResolveError, ResolveErrorKind},
Expand All @@ -18,6 +15,9 @@ use hickory_server::{
proto::op::{Header, MessageType, OpCode, ResponseCode},
server::{Request, RequestHandler, ResponseHandler, ResponseInfo},
};
use once_cell::sync::OnceCell;
use slog::{debug, error};
use std::pin::Pin;

static HANDLER_CONFIG: OnceCell<HandlerConfig> = OnceCell::new();

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
use crate::config::{Config, ConfigBuilder};
use crate::handler::Handler;
use crate::loger::{STDERR, STDOUT};
use crate::logger::{STDERR, STDOUT};
use anyhow::Result;
use clap::Parser;
use failure::Error;
use hickory_server::ServerFuture;
use option::Args;
use slog::{crit, debug, info};
use std::fmt::Display;
Expand All @@ -13,15 +14,14 @@ use std::process::exit;
use std::time::Duration;
use tokio;
use tokio::net::{TcpListener, UdpSocket};
use hickory_server::ServerFuture;

mod config;
mod domain;
mod filter;
mod handler;
mod handler_config;
mod ip;
mod loger;
mod logger;
mod option;
mod resolver;

Expand Down

0 comments on commit 20db334

Please sign in to comment.