Skip to content

Commit a4938e8

Browse files
committed
[FAB-16845] Correct Logging
Signed-off-by: Matthew B. White <[email protected]> Change-Id: I40419ce25b8cb7da17b34c8c09914ec5b78d50ce
1 parent 6f515f0 commit a4938e8

File tree

31 files changed

+540
-464
lines changed

31 files changed

+540
-464
lines changed

build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ version = '1.4.4-SNAPSHOT'
1111

1212
allprojects {
1313
repositories {
14+
mavenCentral()
1415
mavenLocal()
1516
jcenter()
16-
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
1717
maven { url "https://www.jitpack.io" }
18-
mavenCentral()
1918
}
2019
}
2120

fabric-chaincode-docker/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ buildscript {
88
repositories {
99
mavenLocal()
1010
jcenter()
11-
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
1211
maven { url "https://www.jitpack.io" }
1312
mavenCentral()
1413
}

fabric-chaincode-example-maven/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<repositories>
2727
<repository>
2828
<id>jitpack.io</id>
29-
<url>https://jitpack.io</url>
29+
<url>https://www.jitpack.io</url>
3030
</repository>
3131
<repository>
3232
<id>nexus</id>

fabric-chaincode-example-sacc/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ sourceCompatibility = 1.8
1111
repositories {
1212
mavenLocal()
1313
mavenCentral()
14+
maven { url "https://www.jitpack.io" }
1415
}
1516

1617
dependencies {

fabric-chaincode-example-sacc/src/main/java/org/hyperledger/fabric/example/SimpleAsset.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public Response init(ChaincodeStub stub) {
2424
// Get the args from the transaction proposal
2525
List<String> args = stub.getParameters();
2626
if (args.size() != 2) {
27-
newErrorResponse("Incorrect arguments. Expecting a key and a value");
27+
return newErrorResponse("Incorrect arguments. Expecting a key and a value");
2828
}
2929
// Set up any variables or assets here by calling stub.putState()
3030
// We store the key and the value on the ledger

fabric-chaincode-example-sbe/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ sourceCompatibility = 1.8
1111
repositories {
1212
mavenLocal()
1313
mavenCentral()
14+
maven { url "https://www.jitpack.io" }
1415
}
1516

1617
dependencies {

fabric-chaincode-integration-test/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
dependencies {
22
compile project(':fabric-chaincode-docker')
33
testCompile 'org.testcontainers:testcontainers:1.7.1'
4-
testCompile 'org.hyperledger.fabric-sdk-java:fabric-sdk-java:1.4.1'
4+
testCompile 'org.hyperledger.fabric-sdk-java:fabric-sdk-java:1.4.4'
55
compile project(':fabric-chaincode-shim')
66
implementation group: 'org.json', name: 'json', version: '20180813'
77
}
@@ -21,4 +21,4 @@ build.dependsOn project(':fabric-chaincode-docker').buildImage
2121
exceptionFormat "full"
2222

2323
}
24-
}
24+
}

fabric-chaincode-integration-test/src/test/resources/first-network/scripts/script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ LANGUAGE="$3"
1515
TIMEOUT="$4"
1616
VERBOSE="$5"
1717
: ${CHANNEL_NAME:="mychannel"}
18-
: ${DELAY:="3"}
18+
: ${DELAY:="10"}
1919
: ${LANGUAGE:="java"}
2020
: ${TIMEOUT:="10"}
2121
: ${VERBOSE:="false"}

fabric-chaincode-integration-test/src/test/resources/first-network/scripts/utils.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,12 @@ instantiateChaincode() {
167167
# the "-o" option
168168
if [ -z "$CORE_PEER_TLS_ENABLED" -o "$CORE_PEER_TLS_ENABLED" = "false" ]; then
169169
set -x
170-
peer chaincode instantiate -o orderer.example.com:7050 -C $CHANNEL_NAME -n javacc -l ${LANGUAGE} -v ${VERSION} -c '{"Args":["init","a","100","b","200"]}' -P "AND ('Org1MSP.peer','Org2MSP.peer')" >&log.txt
170+
peer chaincode instantiate -o orderer.example.com:7050 -C $CHANNEL_NAME -n javacc -l ${LANGUAGE} -v ${VERSION} -c '{"Args":["init","a","100"]}' -P "AND ('Org1MSP.peer','Org2MSP.peer')" >&log.txt
171171
res=$?
172172
set +x
173173
else
174174
set -x
175-
peer chaincode instantiate -o orderer.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA -C $CHANNEL_NAME -n javacc -l ${LANGUAGE} -v 1.0 -c '{"Args":["init","a","100","b","200"]}' -P "AND ('Org1MSP.peer','Org2MSP.peer')" >&log.txt
175+
peer chaincode instantiate -o orderer.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA -C $CHANNEL_NAME -n javacc -l ${LANGUAGE} -v 1.0 -c '{"Args":["init","a","100"]}' -P "AND ('Org1MSP.peer','Org2MSP.peer')" >&log.txt
176176
res=$?
177177
set +x
178178
fi

fabric-chaincode-protos/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ buildscript {
4949
dependencies {
5050
compile 'com.google.protobuf:protobuf-java:3.5.1'
5151
compile 'com.google.protobuf:protobuf-java-util:3.5.1'
52-
compile 'io.grpc:grpc-netty:1.9.0'
53-
compile 'io.grpc:grpc-protobuf:1.9.0'
54-
compile 'io.grpc:grpc-stub:1.9.0'
52+
compile 'io.grpc:grpc-netty:1.23.0'
53+
compile 'io.grpc:grpc-protobuf:1.23.0'
54+
compile 'io.grpc:grpc-stub:1.23.0'
5555
}
5656

5757
protobuf {

0 commit comments

Comments
 (0)