Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storage: adjust log level #5184

Merged
merged 2 commits into from Aug 5, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/storage/txn/process.rs
Expand Up @@ -172,7 +172,7 @@ impl<E: Engine, S: MsgScheduler> Executor<E, S> {
Err(err) => {
SCHED_STAGE_COUNTER_VEC.get(task.tag).snapshot_err.inc();

error!("get snapshot failed"; "cid" => task.cid, "err" => ?err);
info!("get snapshot failed"; "cid" => task.cid, "err" => ?err);
self.take_pool().pool.spawn(move || {
notify_scheduler(
self.take_scheduler(),
Expand Down Expand Up @@ -315,7 +315,7 @@ impl<E: Engine, S: MsgScheduler> Executor<E, S> {
if let Err(e) = engine.async_write(&ctx, to_be_write, engine_cb) {
SCHED_STAGE_COUNTER_VEC.get(tag).async_write_err.inc();

error!("engine async_write failed"; "cid" => cid, "err" => ?e);
info!("engine async_write failed"; "cid" => cid, "err" => ?e);
let err = e.into();
Msg::FinishedWithErr { cid, err, tag }
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/storage/txn/scheduler.rs
Expand Up @@ -372,7 +372,7 @@ impl<E: Engine> Scheduler<E> {
if let Err(e) = engine.async_snapshot(&ctx, cb) {
SCHED_STAGE_COUNTER_VEC.get(tag).async_snapshot_err.inc();

error!("engine async_snapshot failed"; "err" => ?e);
info!("engine async_snapshot failed"; "err" => ?e);
self.finish_with_err(cid, e.into());
} else {
SCHED_STAGE_COUNTER_VEC.get(tag).snapshot.inc();
Expand Down