浏览代码

update oss-store

reghao 3 天之前
父节点
当前提交
a0def02e06

+ 2 - 0
oss-store/src/main/java/cn/reghao/oss/store/handler/OssDownloadHandler.java

@@ -50,6 +50,7 @@ public class OssDownloadHandler extends SimpleChannelInboundHandler<HttpRequest>
 
         ObjectMeta objectMeta = consoleService.getObjectMeta(httpHost, objectName);
         if (objectMeta == null) {
+            log.error("ObjectMeta not found with object name {}", objectName);
             sendError(ctx, HttpResponseStatus.NOT_FOUND);
             return;
         }
@@ -89,6 +90,7 @@ public class OssDownloadHandler extends SimpleChannelInboundHandler<HttpRequest>
         // 2. 打开物理文件
         File file = new File(absolutePath);
         if (!file.exists()) {
+            log.error("file not exists {}", absolutePath);
             sendError(ctx, HttpResponseStatus.NOT_FOUND);
             return;
         }

+ 0 - 1
oss-store/src/main/java/cn/reghao/oss/store/handler/OssRouterHandler.java

@@ -44,7 +44,6 @@ public class OssRouterHandler extends SimpleChannelInboundHandler<HttpObject> {
             HttpMethod method = req.method();
             QueryStringDecoder decoder = new QueryStringDecoder(req.uri());
             String path = decoder.path();
-            log.info("{} {}", method, path);
 
             HttpHeaders headers = req.headers();
             if (HttpMethod.OPTIONS.equals(method)) {