Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/cli/src/informant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use tokio::runtime::TaskExecutor;
use sysinfo::{get_current_pid, ProcessExt, System, SystemExt};
use network::{SyncState, SyncProvider};
use client::{backend::Backend, BlockchainEvents};
use substrate_telemetry::*;
use substrate_telemetry::SUBSTRATE_INFO;
use log::{info, warn};

use runtime_primitives::generic::BlockId;
Expand Down
3 changes: 3 additions & 0 deletions core/cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
#![warn(missing_docs)]
#![warn(unused_extern_crates)]

#[macro_use(telemetry)]
extern crate substrate_telemetry;

#[macro_use]
mod traits;
mod params;
Expand Down
2 changes: 1 addition & 1 deletion core/client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ use crate::in_mem;
use crate::block_builder::{self, api::BlockBuilder as BlockBuilderAPI};
use crate::genesis;
use consensus;
use substrate_telemetry::*;
use substrate_telemetry::SUBSTRATE_INFO;

use log::{info, trace, warn};
use error_chain::bail;
Expand Down
3 changes: 3 additions & 0 deletions core/client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
#![warn(missing_docs)]
#![recursion_limit="128"]

#[macro_use(telemetry)]
extern crate substrate_telemetry;

#[macro_use]
pub mod runtime_api;
#[cfg(feature = "std")]
Expand Down
5 changes: 4 additions & 1 deletion core/consensus/aura/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
//! Blocks from future steps will be either deferred or rejected depending on how
//! far in the future they are.

#[macro_use(telemetry)]
extern crate substrate_telemetry;

use std::{sync::Arc, time::Duration, thread};

use parity_codec::Encode;
Expand All @@ -52,7 +55,7 @@ use srml_aura::{
InherentType as AuraInherent, AuraInherentData,
timestamp::{TimestampInherentData, InherentType as TimestampInherent, InherentError as TIError}
};
use substrate_telemetry::*;
use substrate_telemetry::{CONSENSUS_TRACE, CONSENSUS_DEBUG, CONSENSUS_WARN, CONSENSUS_INFO};

use aura_slots::{CheckedHeader, SlotWorker, SlotInfo, SlotCompatible};

Expand Down
5 changes: 4 additions & 1 deletion core/finality-grandpa/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
//! or prune any signaled changes based on whether the signaling block is
//! included in the newly-finalized chain.

#[macro_use(telemetry)]
extern crate substrate_telemetry;

use futures::prelude::*;
use log::{debug, info, warn, trace};
use futures::sync::{self, mpsc, oneshot};
Expand All @@ -69,7 +72,7 @@ use runtime_primitives::traits::{
use fg_primitives::GrandpaApi;
use runtime_primitives::generic::BlockId;
use substrate_primitives::{ed25519, H256, Ed25519AuthorityId, Blake2Hasher};
use substrate_telemetry::*;
use substrate_telemetry::{CONSENSUS_TRACE, CONSENSUS_DEBUG, CONSENSUS_WARN};

use grandpa::Error as GrandpaError;
use grandpa::{voter, round::State as RoundState, BlockNumberOps, VoterSet};
Expand Down
5 changes: 4 additions & 1 deletion core/service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@

#![warn(unused_extern_crates)]

#[macro_use(telemetry)]
extern crate tel;

mod components;
mod error;
mod chain_spec;
Expand All @@ -41,7 +44,7 @@ use exit_future::Signal;
pub use tokio::runtime::TaskExecutor;
use substrate_executor::NativeExecutor;
use parity_codec::{Encode, Decode};
use tel::*;
use tel::SUBSTRATE_INFO;

pub use self::error::{ErrorKind, Error};
pub use config::{Configuration, Roles, PruningMode};
Expand Down