@salesforce/core 2.36.2 → 2.36.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [2.36.3](https://github.com/forcedotcom/sfdx-core/compare/v2.36.2...v2.36.3) (2022-04-21)
6
+
7
+ ### Bug Fixes
8
+
9
+ - log rotation errors ([#562](https://github.com/forcedotcom/sfdx-core/issues/562)) ([16a5423](https://github.com/forcedotcom/sfdx-core/commit/16a5423079daad37e1ada6d47767923ec0b7cc94))
10
+
5
11
  ### [2.36.2](https://github.com/forcedotcom/sfdx-core/compare/v2.36.1...v2.36.2) (2022-04-20)
6
12
 
7
13
  ### [2.36.1](https://github.com/forcedotcom/sfdx-core/compare/v2.36.0...v2.36.1) (2022-04-14)
@@ -16,7 +16,6 @@ const sfdxError_1 = require("../sfdxError");
16
16
  const sfdc_1 = require("../util/sfdc");
17
17
  const sfdcUrl_1 = require("../util/sfdcUrl");
18
18
  const configFile_1 = require("./configFile");
19
- const log = logger_1.Logger.childFromRoot('core:config');
20
19
  const SFDX_CONFIG_FILE_NAME = 'sfdx-config.json';
21
20
  /**
22
21
  * The files where sfdx config values are stored for projects and the global space.
@@ -64,9 +63,12 @@ class Config extends configFile_1.ConfigFile {
64
63
  */
65
64
  static addAllowedProperties(metas) {
66
65
  const currentMetaKeys = Object.keys(Config.propertyConfigMap);
66
+ // If logger is needed elsewhere in this file, do not move this outside of the Config class.
67
+ // It was causing issues with Bunyan log rotation. See https://github.com/forcedotcom/sfdx-core/pull/562
68
+ const logger = logger_1.Logger.childFromRoot('core:config');
67
69
  metas.forEach((meta) => {
68
70
  if (currentMetaKeys.includes(meta.key)) {
69
- log.info(`Key ${meta.key} already exists in allowedProperties, skipping.`);
71
+ logger.info(`Key ${meta.key} already exists in allowedProperties, skipping.`);
70
72
  return;
71
73
  }
72
74
  Config.allowedProperties.push(meta);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/core",
3
- "version": "2.36.2",
3
+ "version": "2.36.3",
4
4
  "description": "Core libraries to interact with SFDX projects, orgs, and APIs.",
5
5
  "main": "lib/exported",
6
6
  "types": "lib/exported.d.ts",