Skip to content

Commit

Permalink
Alter logging to support silent in moonbeam decorator (#887)
Browse files Browse the repository at this point in the history
  • Loading branch information
wirednkod authored Apr 3, 2023
1 parent c535f7d commit 4e52faa
Show file tree
Hide file tree
Showing 2 changed files with 2,613 additions and 7 deletions.
21 changes: 14 additions & 7 deletions javascript/packages/orchestrator/src/paras-decorators/moonbeam.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Keyring } from "@polkadot/api";
import { u8aToHex } from "@polkadot/util";
import { cryptoWaitReady } from "@polkadot/util-crypto";
import { decorators } from "@zombienet/utils";
import { CreateLogTable, decorators } from "@zombienet/utils";
import {
clearAuthorities as _clearAuthorities,
specHaveSessionsKeys as _specHaveSessionsKeys,
Expand Down Expand Up @@ -52,13 +52,20 @@ async function addAuthority(specPath: string, node: Node, key: GenesisNodeKey) {

keys.push(key);

console.log(
`\t👤 Added Genesis Authority ${decorators.green(
node.name,
)} - ${decorators.magenta(sr_account.address)}`,
);
new CreateLogTable({
colWidths: [30, 20, 70],
}).pushToPrint([
[
decorators.cyan("👤 Added Genesis Authority"),
decorators.green(node.name),
decorators.magenta(sr_account.address),
],
]);

new CreateLogTable({
colWidths: [120],
}).pushToPrint(chainSpec.genesis.runtime.authorMapping);

console.log(chainSpec.genesis.runtime.authorMapping);
writeChainSpec(specPath, chainSpec);
}

Expand Down
Loading

0 comments on commit 4e52faa

Please sign in to comment.