Skip to content

Commit ca58c47

Browse files
authored
disable logging debug to file (#1331)
To ensure that caliper manager and workers are at their most performant out of the box, this disables logging debug output to a file Signed-off-by: D <d_kelsey@uk.ibm.com>
1 parent 35ae4ca commit ca58c47

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/caliper-core/lib/common/config/default.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ caliper:
136136
enabled: true # Enables the target
137137
options: # These are passed to the winston console target as-is
138138
level: info
139-
# Defines a target with debug level
139+
# Defines a file target with debug level but is disabled by default
140140
file:
141141
target: file
142-
enabled: true
142+
enabled: false
143143
options:
144144
level: debug
145145
filename: caliper.log

packages/caliper-core/lib/worker/caliper-worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class CaliperWorker {
100100
}
101101

102102
if (error) {
103-
Logger.error(`Unhandled error while executing TX: ${error.stack || error}`);
103+
// Already logged, no need to log again
104104
throw error;
105105
}
106106

packages/caliper-tests-integration/fabric_tests/phase3/src/marbles/node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
"engine-strict": true,
1313
"license": "Apache-2.0",
1414
"dependencies": {
15-
"fabric-shim": "1.4.5"
15+
"fabric-shim": "2.4.2"
1616
}
1717
}

0 commit comments

Comments
 (0)