Skip to content

Commit

Permalink
fix: remove unecessary logs (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
troykessler authored Dec 15, 2023
1 parent 3cba83d commit 6915fda
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions common/protocol/src/methods/checks/isValidRuntime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import { Validator, standardizeError } from "../..";
*/
export function isValidRuntime(this: Validator): boolean {
try {
this.logger.debug(`Comparing pool runtime with protocol node runtime`);

if (this.pool.data!.runtime !== this.runtime.name) {
this.logger.fatal(
`Specified pool does not match the integration runtime! Exiting ...`
Expand All @@ -23,8 +21,6 @@ export function isValidRuntime(this: Validator): boolean {
return false;
}

this.logger.info(`Validator running on runtime = ${this.runtime.name}`);

return true;
} catch (err) {
this.logger.fatal(`Error while validating runtime. Exiting ...`);
Expand Down
8 changes: 0 additions & 8 deletions common/protocol/src/methods/checks/isValidVersion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ import { valid, major, minor, patch, prerelease } from "semver";
*/
export function isValidVersion(this: Validator): boolean {
try {
this.logger.debug(
`Comparing remote runtime version with local runtime version`
);

const remoteVersion = valid(this.pool.data!.protocol!.version);

// exit if remote version is invalid
Expand Down Expand Up @@ -87,10 +83,6 @@ export function isValidVersion(this: Validator): boolean {
}

// patch version can be different, continue in this case
this.logger.info(
`Validator running on valid runtime version = ${this.runtime.version}`
);

return true;
} catch (err) {
this.logger.fatal(`Error while validating runtime version. Exiting ...`);
Expand Down

0 comments on commit 6915fda

Please sign in to comment.