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

fix: remove unecessary logs #109

Merged
merged 1 commit into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
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