Skip to content

Commit 29dfdbb

Browse files
committed
chore(mbe): rename logFile to httpLogger
The logFile env var is only being used for HTTP logs. Update the name to reflect that. Ticket: WP-5364
1 parent 1567585 commit 29dfdbb

24 files changed

+71
-49
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Both modes use the same TLS configuration variables:
7575

7676
### Logging and Debug
7777

78-
- `LOGFILE` - Path to log file (optional)
78+
- `HTTP_LOGFILE` - Path to HTTP request log file (optional, used by Morgan for HTTP access logs)
7979

8080
## Quick Start
8181

src/__tests__/api/enclaved/postIndependentKey.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('postIndependentKey', () => {
3333
port: 0, // Let OS assign a free port
3434
bind: 'localhost',
3535
timeout: 60000,
36-
logFile: '',
36+
httpLoggerFile: '',
3737
kmsUrl: kmsUrl,
3838
tlsMode: TlsMode.DISABLED,
3939
allowSelfSigned: true,

src/__tests__/api/enclaved/postMpcV2Key.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe('postMpcV2Key', () => {
3535
port: 0, // Let OS assign a free port
3636
bind: 'localhost',
3737
timeout: 60000,
38-
logFile: '',
38+
httpLoggerFile: '',
3939
kmsUrl: kmsUrl,
4040
tlsMode: TlsMode.DISABLED,
4141
allowSelfSigned: true,

src/__tests__/api/enclaved/recoveryMultisigTransaction.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe('UTXO recovery', () => {
1919
port: 0,
2020
bind: 'localhost',
2121
timeout: 60000,
22-
logFile: '',
22+
httpLoggerFile: '',
2323
tlsMode: TlsMode.DISABLED,
2424
allowSelfSigned: true,
2525
kmsUrl: 'kms.example.com',

src/__tests__/api/enclaved/recoveryMusigEth.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('recoveryMultisigTransaction', () => {
3636
port: 0, // Let OS assign a free port
3737
bind: 'localhost',
3838
timeout: 60000,
39-
logFile: '',
39+
httpLoggerFile: '',
4040
kmsUrl: kmsUrl,
4141
tlsMode: TlsMode.DISABLED,
4242
allowSelfSigned: true,

src/__tests__/api/enclaved/signMpcRecoveryTransaction.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ import { AppMode, EnclavedConfig, TlsMode } from '../../../shared/types';
1010
describe('EdDSA Recovery Signing', () => {
1111
let agent: supertest.SuperTest<supertest.Test>;
1212
const config: EnclavedConfig = {
13+
kmsUrl: 'http://localhost:3000',
1314
appMode: AppMode.ENCLAVED,
1415
port: 0,
1516
bind: 'localhost',
1617
timeout: 60000,
17-
logFile: '',
18+
httpLoggerFile: '',
1819
tlsMode: TlsMode.DISABLED,
1920
allowSelfSigned: true,
2021
};

src/__tests__/api/enclaved/signMpcTransaction.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('signMpcTransaction', () => {
4040
port: 0, // Let OS assign a free port
4141
bind: 'localhost',
4242
timeout: 60000,
43-
logFile: '',
43+
httpLoggerFile: '',
4444
kmsUrl: kmsUrl,
4545
tlsMode: TlsMode.DISABLED,
4646
allowSelfSigned: true,

src/__tests__/api/enclaved/signMultisigTransaction.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('signMultisigTransaction', () => {
3333
port: 0, // Let OS assign a free port
3434
bind: 'localhost',
3535
timeout: 60000,
36-
logFile: '',
36+
httpLoggerFile: '',
3737
kmsUrl: kmsUrl,
3838
tlsMode: TlsMode.DISABLED,
3939
allowSelfSigned: true,

src/__tests__/api/master/accelerate.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe('POST /api/:coin/wallet/:walletId/accelerate', () => {
2323
port: 0, // Let OS assign a free port
2424
bind: 'localhost',
2525
timeout: 30000,
26-
logFile: '',
26+
httpLoggerFile: '',
2727
env: 'test',
2828
disableEnvCheck: true,
2929
authVersion: 2,

src/__tests__/api/master/consolidate.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('POST /api/:coin/wallet/:walletId/consolidateunspents', () => {
2626
port: 0,
2727
bind: 'localhost',
2828
timeout: 30000,
29-
logFile: '',
29+
httpLoggerFile: '',
3030
env: 'test',
3131
disableEnvCheck: true,
3232
authVersion: 2,

0 commit comments

Comments
 (0)