mirror of
http://shenjack.top:5100/shenjack/icalingua-python-bot.git
synced 2024-11-23 12:41:05 +08:00
稍微去除一点 info 之类的
This commit is contained in:
parent
4aa969adc5
commit
98633aa5cc
|
@ -73,7 +73,7 @@ pub fn version_str() -> String {
|
||||||
|
|
||||||
/// 是否为稳定版本
|
/// 是否为稳定版本
|
||||||
/// 会在 release 的时候设置为 true
|
/// 会在 release 的时候设置为 true
|
||||||
pub const STABLE: bool = true;
|
pub const STABLE: bool = false;
|
||||||
|
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! async_callback_with_state {
|
macro_rules! async_callback_with_state {
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
use std::time::SystemTime;
|
use std::time::SystemTime;
|
||||||
|
|
||||||
use pyo3::prelude::*;
|
use pyo3::{pyclass, pymethods};
|
||||||
use rust_socketio::asynchronous::Client;
|
use rust_socketio::asynchronous::Client;
|
||||||
use tokio::runtime::Runtime;
|
use tokio::runtime::Runtime;
|
||||||
use tracing::{debug, info, warn};
|
use tracing::{event, Level};
|
||||||
|
|
||||||
use crate::data_struct::ica::messages::{
|
use crate::data_struct::ica::messages::{
|
||||||
DeleteMessage, MessageTrait, NewMessage, ReplyMessage, SendMessage,
|
DeleteMessage, MessageTrait, NewMessage, ReplyMessage, SendMessage,
|
||||||
|
@ -192,7 +192,7 @@ impl IcaClientPy {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn send_and_warn(&self, message: SendMessagePy) -> bool {
|
pub fn send_and_warn(&self, message: SendMessagePy) -> bool {
|
||||||
warn!(message.msg.content);
|
event!(Level::WARN, message.msg.content);
|
||||||
self.send_message(message)
|
self.send_message(message)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -231,13 +231,13 @@ impl IcaClientPy {
|
||||||
pub fn get_startup_time(&self) -> SystemTime { crate::MainStatus::get_startup_time() }
|
pub fn get_startup_time(&self) -> SystemTime { crate::MainStatus::get_startup_time() }
|
||||||
|
|
||||||
pub fn debug(&self, content: String) {
|
pub fn debug(&self, content: String) {
|
||||||
debug!("{}", content);
|
event!(Level::DEBUG, "{}", content);
|
||||||
}
|
}
|
||||||
pub fn info(&self, content: String) {
|
pub fn info(&self, content: String) {
|
||||||
info!("{}", content);
|
event!(Level::INFO, "{}", content);
|
||||||
}
|
}
|
||||||
pub fn warn(&self, content: String) {
|
pub fn warn(&self, content: String) {
|
||||||
warn!("{}", content);
|
event!(Level::WARN, "{}", content);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user