Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
2da5095d
Unverified
Commit
2da5095d
authored
Mar 10, 2021
by
Andronik Ordian
Committed by
GitHub
Mar 10, 2021
Browse files
prefix parachain log targets with parachain:: (#2600)
* prefix parachain log targets with parachain:: * even more consistent
parent
e6b065f6
Pipeline
#127679
canceled with stages
in 12 minutes and 32 seconds
Changes
26
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
node/collation-generation/src/lib.rs
View file @
2da5095d
...
...
@@ -46,7 +46,7 @@ use std::sync::Arc;
mod
error
;
const
LOG_TARGET
:
&
'static
str
=
"collation
_
generation"
;
const
LOG_TARGET
:
&
'static
str
=
"
parachain::
collation
-
generation"
;
/// Collation Generation Subsystem
pub
struct
CollationGenerationSubsystem
{
...
...
node/core/approval-voting/src/lib.rs
View file @
2da5095d
...
...
@@ -75,7 +75,7 @@ mod persisted_entries;
mod
tests
;
const
APPROVAL_SESSIONS
:
SessionIndex
=
6
;
const
LOG_TARGET
:
&
str
=
"approval
_
voting"
;
const
LOG_TARGET
:
&
str
=
"
parachain::
approval
-
voting"
;
/// Configuration for the approval voting subsystem
pub
struct
Config
{
...
...
node/core/av-store/src/lib.rs
View file @
2da5095d
...
...
@@ -49,7 +49,7 @@ use bitvec::{vec::BitVec, order::Lsb0 as BitOrderLsb0};
#[cfg(test)]
mod
tests
;
const
LOG_TARGET
:
&
str
=
"availability"
;
const
LOG_TARGET
:
&
str
=
"
parachain::
availability"
;
mod
columns
{
pub
const
DATA
:
u32
=
0
;
...
...
node/core/backing/src/lib.rs
View file @
2da5095d
...
...
@@ -66,7 +66,7 @@ use statement_table::{
};
use
thiserror
::
Error
;
const
LOG_TARGET
:
&
str
=
"candidate
_
backing"
;
const
LOG_TARGET
:
&
str
=
"
parachain::
candidate
-
backing"
;
#[derive(Debug,
Error)]
enum
Error
{
...
...
node/core/bitfield-signing/src/lib.rs
View file @
2da5095d
...
...
@@ -39,7 +39,7 @@ use wasm_timer::{Delay, Instant};
/// Delay between starting a bitfield signing job and its attempting to create a bitfield.
const
JOB_DELAY
:
Duration
=
Duration
::
from_millis
(
1500
);
const
LOG_TARGET
:
&
str
=
"bitfield
_
signing"
;
const
LOG_TARGET
:
&
str
=
"
parachain::
bitfield
-
signing"
;
/// Each `BitfieldSigningJob` prepares a signed bitfield for a single relay parent.
pub
struct
BitfieldSigningJob
;
...
...
node/core/candidate-selection/src/lib.rs
View file @
2da5095d
...
...
@@ -43,7 +43,7 @@ use polkadot_node_primitives::SignedFullStatement;
use
std
::{
pin
::
Pin
,
sync
::
Arc
};
use
thiserror
::
Error
;
const
LOG_TARGET
:
&
'static
str
=
"candidate
_
selection"
;
const
LOG_TARGET
:
&
'static
str
=
"
parachain::
candidate
-
selection"
;
struct
CandidateSelectionJob
{
assignment
:
ParaId
,
...
...
node/core/candidate-validation/src/lib.rs
View file @
2da5095d
...
...
@@ -51,7 +51,7 @@ use futures::prelude::*;
use
std
::
sync
::
Arc
;
const
LOG_TARGET
:
&
'static
str
=
"candidate
_
validation"
;
const
LOG_TARGET
:
&
'static
str
=
"
parachain::
candidate
-
validation"
;
/// The candidate validation subsystem.
pub
struct
CandidateValidationSubsystem
<
S
>
{
...
...
node/core/chain-api/src/lib.rs
View file @
2da5095d
...
...
@@ -44,7 +44,7 @@ use std::sync::Arc;
use
futures
::
prelude
::
*
;
const
LOG_TARGET
:
&
str
=
"chain
_
api"
;
const
LOG_TARGET
:
&
str
=
"
para
chain
::chain-
api"
;
/// The Chain API Subsystem implementation.
pub
struct
ChainApiSubsystem
<
Client
>
{
...
...
node/core/provisioner/src/lib.rs
View file @
2da5095d
...
...
@@ -46,7 +46,7 @@ use futures_timer::Delay;
/// How long to wait before proposing.
const
PRE_PROPOSE_TIMEOUT
:
std
::
time
::
Duration
=
core
::
time
::
Duration
::
from_millis
(
2000
);
const
LOG_TARGET
:
&
str
=
"provisioner"
;
const
LOG_TARGET
:
&
str
=
"
parachain::
provisioner"
;
enum
InherentAfter
{
Ready
,
...
...
node/core/runtime-api/src/lib.rs
View file @
2da5095d
...
...
@@ -43,7 +43,7 @@ use cache::{RequestResult, RequestResultCache};
mod
cache
;
const
LOG_TARGET
:
&
str
=
"runtime
_
api"
;
const
LOG_TARGET
:
&
str
=
"
parachain::
runtime
-
api"
;
/// The number of maximum runtime api requests can be executed in parallel. Further requests will be buffered.
const
MAX_PARALLEL_REQUESTS
:
usize
=
4
;
...
...
node/network/approval-distribution/src/lib.rs
View file @
2da5095d
...
...
@@ -45,7 +45,7 @@ use polkadot_node_network_protocol::{
};
const
LOG_TARGET
:
&
str
=
"approval
_
distribution"
;
const
LOG_TARGET
:
&
str
=
"
parachain::
approval
-
distribution"
;
const
COST_UNEXPECTED_MESSAGE
:
Rep
=
Rep
::
CostMinor
(
"Peer sent an out-of-view assignment or approval"
);
const
COST_DUPLICATE_MESSAGE
:
Rep
=
Rep
::
CostMinorRepeated
(
"Peer sent identical messages"
);
...
...
node/network/availability-distribution/src/lib.rs
View file @
2da5095d
...
...
@@ -46,7 +46,7 @@ pub use metrics::Metrics;
#[cfg(test)]
mod
tests
;
const
LOG_TARGET
:
&
'static
str
=
"availability
_
distribution"
;
const
LOG_TARGET
:
&
'static
str
=
"
parachain::
availability
-
distribution"
;
/// The availability distribution subsystem.
pub
struct
AvailabilityDistributionSubsystem
{
...
...
node/network/availability-recovery/src/lib.rs
View file @
2da5095d
...
...
@@ -56,7 +56,7 @@ mod error;
#[cfg(test)]
mod
tests
;
const
LOG_TARGET
:
&
str
=
"availability
_
recovery"
;
const
LOG_TARGET
:
&
str
=
"
parachain::
availability
-
recovery"
;
const
COST_MERKLE_PROOF_INVALID
:
Rep
=
Rep
::
CostMinor
(
"Merkle proof was invalid"
);
const
COST_UNEXPECTED_CHUNK
:
Rep
=
Rep
::
CostMinor
(
"Peer has sent an unexpected chunk"
);
...
...
node/network/bitfield-distribution/src/lib.rs
View file @
2da5095d
...
...
@@ -136,7 +136,7 @@ impl PerRelayParentData {
}
}
const
LOG_TARGET
:
&
str
=
"bitfield
_
distribution"
;
const
LOG_TARGET
:
&
str
=
"
parachain::
bitfield
-
distribution"
;
/// The bitfield distribution subsystem.
pub
struct
BitfieldDistribution
{
...
...
node/network/bridge/src/lib.rs
View file @
2da5095d
...
...
@@ -77,7 +77,7 @@ const MALFORMED_VIEW_COST: Rep = Rep::CostMajor("Malformed view");
const
EMPTY_VIEW_COST
:
Rep
=
Rep
::
CostMajor
(
"Peer sent us an empty view"
);
// network bridge log target
const
LOG_TARGET
:
&
'static
str
=
"network
_
bridge"
;
const
LOG_TARGET
:
&
'static
str
=
"
parachain::
network
-
bridge"
;
/// Messages from and to the network.
///
...
...
node/network/bridge/src/validator_discovery.rs
View file @
2da5095d
...
...
@@ -30,7 +30,7 @@ use polkadot_node_network_protocol::PeerId;
use
polkadot_primitives
::
v1
::{
AuthorityDiscoveryId
,
Block
,
Hash
};
use
polkadot_node_network_protocol
::
peer_set
::{
PeerSet
,
PerPeerSet
};
const
LOG_TARGET
:
&
str
=
"validator
_
discovery"
;
const
LOG_TARGET
:
&
str
=
"
parachain::
validator
-
discovery"
;
/// An abstraction over networking for the purposes of validator discovery service.
#[async_trait]
...
...
node/network/collator-protocol/src/lib.rs
View file @
2da5095d
...
...
@@ -43,7 +43,7 @@ use polkadot_node_subsystem_util::{
mod
collator_side
;
mod
validator_side
;
const
LOG_TARGET
:
&
'static
str
=
"collator
_
protocol"
;
const
LOG_TARGET
:
&
'static
str
=
"
parachain::
collator
-
protocol"
;
const
REQUEST_TIMEOUT
:
Duration
=
Duration
::
from_secs
(
1
);
#[derive(Debug,
Error)]
...
...
node/network/gossip-support/src/lib.rs
View file @
2da5095d
...
...
@@ -36,7 +36,7 @@ use polkadot_primitives::v1::{
};
use
polkadot_node_network_protocol
::
peer_set
::
PeerSet
;
const
LOG_TARGET
:
&
str
=
"gossip
_
support"
;
const
LOG_TARGET
:
&
str
=
"
parachain::
gossip
-
support"
;
/// The Gossip Support subsystem.
pub
struct
GossipSupport
{}
...
...
node/network/pov-distribution/src/lib.rs
View file @
2da5095d
...
...
@@ -64,7 +64,7 @@ const BENEFIT_FRESH_POV: Rep = Rep::BenefitMinorFirst("Peer supplied us with an
const
BENEFIT_LATE_POV
:
Rep
=
Rep
::
BenefitMinor
(
"Peer supplied us with an awaited PoV,
\
but was not the first to do so"
);
const
LOG_TARGET
:
&
str
=
"pov
_
distribution"
;
const
LOG_TARGET
:
&
str
=
"
parachain::
pov
-
distribution"
;
/// The PoV Distribution Subsystem.
pub
struct
PoVDistribution
{
...
...
node/network/statement-distribution/src/lib.rs
View file @
2da5095d
...
...
@@ -63,7 +63,7 @@ const BENEFIT_VALID_STATEMENT_FIRST: Rep = Rep::BenefitMajorFirst(
/// Typically we will only keep 1, but when a validator equivocates we will need to track 2.
const
VC_THRESHOLD
:
usize
=
2
;
const
LOG_TARGET
:
&
str
=
"statement
_
distribution"
;
const
LOG_TARGET
:
&
str
=
"
parachain::
statement
-
distribution"
;
/// The statement distribution subsystem.
pub
struct
StatementDistribution
{
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment