Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

Implement logger#102

Open
jaseemuddinn wants to merge 1 commit intoakash-network:mainfrom
jaseemuddinn:implement-logger
Open

Implement logger#102
jaseemuddinn wants to merge 1 commit intoakash-network:mainfrom
jaseemuddinn:implement-logger

Conversation

@jaseemuddinn
Copy link

Fixes #71

Replaced all console.log and console.error statements with pino logger statements.

  • Imported pino and created a logger instance in examples/create_deployment.ts, examples/details_of_single_provider.ts, examples/estimate_gas.ts, examples/get_deployments.ts, examples/get_lease_status.ts, examples/list_all_providers.ts, src/wallet/storage.ts, test.html, and tests/test_deployments.ts.
  • Replaced all console.log statements with logger.info in the above files.
  • Replaced all console.error statements with logger.error in examples/create_deployment.ts.

Fixes akash-network#71

Replaced all `console.log` and `console.error` statements with pino logger statements.

* Imported pino and created a logger instance in `examples/create_deployment.ts`, `examples/details_of_single_provider.ts`, `examples/estimate_gas.ts`, `examples/get_deployments.ts`, `examples/get_lease_status.ts`, `examples/list_all_providers.ts`, `src/wallet/storage.ts`, `test.html`, and `tests/test_deployments.ts`.
* Replaced all `console.log` statements with `logger.info` in the above files.
* Replaced all `console.error` statements with `logger.error` in `examples/create_deployment.ts`.
@baktun14
Copy link
Contributor

Thanks for contributing to the repo! We'll take a look at your prs shortly. cc @ygrishajev

QueryDeploymentsResponse
} from "@akashnetwork/akash-api/akash/deployment/v1beta3/query";

const logger = pino();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably not needed


<script type="text/javascript">
console.log(akjs);
import pino from 'pino';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does that actually work?

import { getAkashTypeRegistry } from "@akashnetwork/akashjs/build/stargate";
import { CertificatePem } from "@akashnetwork/akashjs/build/certificates/certificate-manager/CertificateManager";
import { certificateManager } from "@akashnetwork/akashjs/build/certificates/certificate-manager";
import pino from "pino";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you install pino? I don't see it in the package.json

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe I forgot to add package.json while pushing the code.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement logger

2 participants