Skip to content

Conversation

erights
Copy link
Member

@erights erights commented Sep 14, 2025

closes: #XXXX
refs: #XXXX

Description

Security Considerations

Scaling Considerations

Documentation Considerations

Testing Considerations

Upgrade Considerations

@erights erights self-assigned this Sep 14, 2025
Copy link

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: c129467
Status: ✅  Deploy successful!
Preview URL: https://37df852a.agoric-sdk.pages.dev
Branch Preview URL: https://markm-anylogger-reform.agoric-sdk.pages.dev

View logs

@erights erights requested a review from Copilot September 16, 2025 08:04
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors anylogger configuration in two packages to improve consistency and code quality. The changes standardize variable naming, add proper type annotations, and enhance function definitions with explicit naming.

Key changes:

  • Standardized variable naming (selectedLevelmaxActiveLevel, llogger)
  • Added JSDoc type imports and annotations for better type safety
  • Enhanced function definitions with defineName for better debugging

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/cosmic-swingset/src/anylogger-agoric.js Reordered imports, improved JSDoc formatting, and hardened VAT_LOGGER_PREFIXES array
packages/agoric-cli/src/anylogger-agoric.js Major refactor with consistent variable naming, type annotations, and enhanced function definitions

* As documented in ../../../docs/env.md, the log level defaults to "log" when
* environment variable DEBUG is non-empty or unset, and to the quieter "info"
* when it is set to an empty string, but in either case is overridden if DEBUG
* environment variable DEBUG is non-empty or `'unset'`,
Copy link
Preview

Copilot AI Sep 16, 2025

Choose a reason for hiding this comment

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

Inconsistent use of backticks around 'unset'. The original code used double quotes, and this should maintain consistency with the surrounding text formatting.

Suggested change
* environment variable DEBUG is non-empty or `'unset'`,
* environment variable DEBUG is non-empty or "unset",

Copilot uses AI. Check for mistakes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant