log.warn if not found, fix comment
authorVladimir Krivosheev <vladimir.krivosheev@jetbrains.com>
Fri, 15 Apr 2016 16:02:48 +0000 (18:02 +0200)
committerVladimir Krivosheev <vladimir.krivosheev@jetbrains.com>
Fri, 22 Apr 2016 13:16:44 +0000 (15:16 +0200)
platform/built-in-server/src/org/jetbrains/ide/OpenFileHttpService.kt

index d4242a3df3e9b3080926ec61be27e369671f099f..8417d3dbcddb1b4a3a8395b4472a5bd8a480b7d6 100644 (file)
@@ -121,8 +121,9 @@ internal class OpenFileHttpService : RestService() {
     promise.done { sendStatus(HttpResponseStatus.OK, keepAlive, channel) }
       .rejected {
         if (it === NOT_FOUND) {
-          // don't expose file status if not local origin
+          // don't expose file status
           sendStatus(HttpResponseStatus.OK, keepAlive, channel)
+          LOG.warn("File ${apiRequest.file} not found")
         }
         else {
           // todo send error