Skip to content

Commit d628d80

Browse files
Merge pull request #492 from lukecotter/fix-retrieve-log-cmd
fix: retrieve log cmd
2 parents 6a82a8f + f72524a commit d628d80

5 files changed

Lines changed: 18 additions & 13 deletions

File tree

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.14.1] - 2024-03-01
9+
10+
### Fixed
11+
12+
- `Log: Retrieve Apex Log And Show Analysis` not working ([#490][#490])
13+
814
## [1.14.0] - 2024-02-12
915

1016
### Added
@@ -326,7 +332,11 @@ Skipped due to adopting odd numbering for pre releases and even number for relea
326332
- Add explorer menu item
327333
- Provide more information when selecting log to download
328334

329-
<!-- Unreleased -->
335+
<!-- v1.14.1 -->
336+
337+
[#490]: https://github.com/certinia/debug-log-analyzer/issues/490
338+
339+
<!-- v1.14.0 -->
330340

331341
[#475]: https://github.com/certinia/debug-log-analyzer/issues/475
332342
[#299]: https://github.com/certinia/debug-log-analyzer/issues/299

lana/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "lana",
33
"displayName": "Apex Log Analyzer",
4-
"version": "1.14.0",
4+
"version": "1.14.1",
55
"description": "Analyzer for Salesforce debug logs - Visualize code execution via a Flame graph and identify performance and SOQL/DML problems via Method and Database analysis",
66
"keywords": [
77
"apex",

lana/src/salesforce/logs/GetLogFile.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@
22
* Copyright (c) 2020 Certinia Inc. All rights reserved.
33
*/
44

5+
import { AuthHelper } from '@apexdevtools/sfdx-auth-helper';
6+
import { LogService } from '@salesforce/apex-node';
7+
58
export class GetLogFile {
69
static async apply(wsPath: string, logDir: string, logId: string): Promise<void> {
7-
// eslint-disable-next-line @typescript-eslint/naming-convention
8-
const { AuthHelper } = await import('@apexdevtools/sfdx-auth-helper');
910
const ah = await AuthHelper.instance(wsPath);
1011
const connection = await ah.connect(await ah.getDefaultUsername());
1112

1213
if (connection) {
13-
// eslint-disable-next-line @typescript-eslint/naming-convention
14-
const { LogService } = await import('@salesforce/apex-node');
1514
await new LogService(connection).getLogs({ logId: logId, outputDir: logDir });
1615
}
1716
return new Promise((resolve) => resolve());

lana/src/salesforce/logs/GetLogFiles.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
/*
22
* Copyright (c) 2020 Certinia Inc. All rights reserved.
33
*/
4-
import { type LogRecord } from '@salesforce/apex-node';
4+
import { AuthHelper } from '@apexdevtools/sfdx-auth-helper';
5+
import { LogService, type LogRecord } from '@salesforce/apex-node';
56

67
export class GetLogFiles {
78
static async apply(wsPath: string): Promise<LogRecord[]> {
8-
// eslint-disable-next-line @typescript-eslint/naming-convention
9-
const { AuthHelper } = await import('@apexdevtools/sfdx-auth-helper');
109
const ah = await AuthHelper.instance(wsPath);
1110
const connection = await ah.connect(await ah.getDefaultUsername());
1211

1312
if (connection) {
14-
// eslint-disable-next-line @typescript-eslint/naming-convention
15-
const { LogService } = await import('@salesforce/apex-node');
1613
return new LogService(connection).getLogRecords();
1714
}
1815
return [];

rollup.config.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ export default [
2020
input: './lana/src/Main.ts',
2121
output: {
2222
format: 'cjs',
23-
dir: './lana/out',
24-
chunkFileNames: '[name].js',
23+
file: './lana/out/Main.js',
2524
sourcemap: false,
2625
},
2726
external: ['vscode'],

0 commit comments

Comments
 (0)