Skip to content

Commit ed6854b

Browse files
committed
add sdk log for isQueryRegionAPIAvaiable()
1 parent 0979b4f commit ed6854b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/components/services/qiniu-client.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ angular.module('web').factory('QiniuClient', [
5858

5959
function isQueryRegionAPIAvaiable(ucUrl) {
6060
return new Promise((resolve) => {
61-
Region.query({ accessKey: '', bucketName: '', ucUrl: ucUrl }).then(() => {
61+
const option = {
62+
accessKey: '', bucketName: '', ucUrl: ucUrl,
63+
requestCallback: debugRequest(KODO_MODE), responseCallback: debugResponse(KODO_MODE),
64+
};
65+
Region.query(option).then(() => {
6266
resolve(true);
6367
}, (err) => {
6468
if (err.res && err.res.statusCode === 404) {

0 commit comments

Comments
 (0)