Skip to content

Commit 5a6030b

Browse files
committed
api service bug fix.
1 parent 2b93f92 commit 5a6030b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

dss-apps/dss-apiservice-server/src/main/java/com/webank/wedatasphere/dss/apiservice/core/service/impl/ApiServiceImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
import org.apache.commons.lang.StringUtils;
4747
import org.apache.http.Consts;
4848
import org.apache.ibatis.annotations.Param;
49-
import org.mortbay.log.Log;
5049
import org.slf4j.Logger;
5150
import org.slf4j.LoggerFactory;
5251
import org.springframework.beans.factory.annotation.Autowired;
@@ -245,7 +244,7 @@ public void update(ApiServiceVo apiService) throws Exception {
245244
apiService.setCreator(maxTargetApiVersionVo.getCreator());
246245
apiService.setId(maxTargetApiVersionVo.getApiId());
247246
apiServiceDao.updateToTarget(apiService);
248-
Log.info("Update to other Api Service, ID: " + apiService.getTargetServiceId() + ",resourceId:" + maxTargetApiVersionVo.getBmlResourceId());
247+
LOG.info("Update to other Api Service, ID: " + apiService.getTargetServiceId() + ",resourceId:" + maxTargetApiVersionVo.getBmlResourceId());
249248

250249

251250
String version = updateResult.get("version");

dss-apps/dss-apiservice-server/src/main/java/com/webank/wedatasphere/dss/apiservice/core/token/JwtManager.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import io.jsonwebtoken.SignatureException;
3030
import io.jsonwebtoken.UnsupportedJwtException;
3131
import io.jsonwebtoken.impl.crypto.MacProvider;
32-
import org.mortbay.log.Log;
3332
import org.slf4j.Logger;
3433
import org.slf4j.LoggerFactory;
3534
import javax.crypto.SecretKey;
@@ -71,7 +70,7 @@ public final static TemporalAmount getTokenHour() {
7170
public static SecretKey generalKey() {
7271
byte[] encodedKey = Base64.decode(JWT_SECERT);
7372
SecretKey key = new SecretKeySpec(encodedKey, 0, encodedKey.length, "AES");
74-
Log.info("token key str:"+key.toString());
73+
LOG.info("token key str:"+key.toString());
7574
return key;
7675
}
7776

0 commit comments

Comments
 (0)