Skip to content

Commit

Permalink
[ISSUE #2275]🔥Remove rocketmq-store log crate (#2276)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsm authored Jan 16, 2025
1 parent 4cfacc9 commit 1c3b29c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

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

1 change: 0 additions & 1 deletion rocketmq-store/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ serde_json.workspace = true
lazy_static.workspace = true

tempfile = "3.14.0"
log = "0.4.25"

memmap2 = "0.9.5"
trait-variant.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion rocketmq-store/src/consume_queue/mapped_file_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ use std::sync::atomic::Ordering;
use std::sync::Arc;

use cheetah_string::CheetahString;
use log::warn;
use parking_lot::RwLock;
use rocketmq_common::UtilAll::offset_to_file_name;
use tracing::info;
use tracing::warn;

use crate::log_file::mapped_file::default_mapped_file_impl::DefaultMappedFile;
use crate::log_file::mapped_file::MappedFile;
Expand Down
6 changes: 4 additions & 2 deletions rocketmq-store/src/index/index_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ use bytes::Buf;
use bytes::Bytes;
use cheetah_string::CheetahString;
use rocketmq_common::common::hasher::string_hasher::JavaStringHasher;
use tracing::info;
use tracing::warn;

use crate::index::index_header::IndexHeader;
use crate::index::index_header::INDEX_HEADER_SIZE;
Expand Down Expand Up @@ -123,7 +125,7 @@ impl IndexFile {
self.index_header.update_byte_buffer();
self.mapped_file.flush(0);
self.mapped_file.release();
log::info!(
info!(
"flush index file elapsed time(ms) {}",
begin_time.elapsed().as_millis()
);
Expand Down Expand Up @@ -210,7 +212,7 @@ impl IndexFile {

true
} else {
log::warn!(
warn!(
"Over index file capacity: index count = {}; index max num = {}",
self.index_header.get_index_count(),
self.index_num
Expand Down

0 comments on commit 1c3b29c

Please # to comment.