1.0.0 Rework #25
2 changed files with 7 additions and 0 deletions
|
@ -12,3 +12,6 @@ serde = "1.0.152"
|
||||||
serde_derive = "1.0.152"
|
serde_derive = "1.0.152"
|
||||||
serde_json = "1.0.93"
|
serde_json = "1.0.93"
|
||||||
strum_macros = "0.24.3"
|
strum_macros = "0.24.3"
|
||||||
|
log = "^0.4.20"
|
||||||
|
systemd-journal-logger = "^2.1.1"
|
||||||
|
confy = "0.5.1"
|
||||||
|
|
|
@ -3,6 +3,8 @@ use reqwest::blocking::get;
|
||||||
use serde_derive::{Deserialize, Serialize};
|
use serde_derive::{Deserialize, Serialize};
|
||||||
use std::{fs, thread::{sleep}};
|
use std::{fs, thread::{sleep}};
|
||||||
use chrono::{Utc, Duration};
|
use chrono::{Utc, Duration};
|
||||||
|
use log::{info, warn, error, LevelFilter};
|
||||||
|
use systemd_journal_logger::JournalLog;
|
||||||
mod config;
|
mod config;
|
||||||
mod cloudflare;
|
mod cloudflare;
|
||||||
|
|
||||||
|
@ -356,6 +358,8 @@ fn update_dns() {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
JournalLog::new().expect("Systemd-Logger crate error").install().expect("Systemd-Logger crate error");
|
||||||
|
log::set_max_level(LevelFilter::Info);
|
||||||
|
|
||||||
let mut now = Utc::now() - Duration::seconds(59);
|
let mut now = Utc::now() - Duration::seconds(59);
|
||||||
let mut current = now;
|
let mut current = now;
|
||||||
|
|
Loading…
Reference in a new issue