Skip to content

Commit 716b5e9

Browse files
committed
upd auth
1 parent 0c6752f commit 716b5e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

microservices/gatewayApi/patterns/sdx/access_point_r1.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@
137137
local function read_file(filename)
138138
local file = io.open(filename, "r")
139139
if not file then
140-
print("Error: Could not open file " .. filename)
141-
return nil
140+
kong.log.err("Error: Could not open file " .. filename)
141+
return kong.response.exit(500, "Error: Could not open file " .. filename)
142142
end
143143
144144
local content = file:read("*all") -- Read entire file
@@ -162,8 +162,8 @@
162162
}
163163
164164
if not config.cert_file or not config.key_file then
165-
kong.log.info("Failed to load certificates as cdata")
166-
return kong.response.exit(500, "Failed to load certificates as cdata"))
165+
kong.log.err("Failed to load certificates as cdata")
166+
return kong.response.exit(500, "Failed to load certificates as cdata")
167167
end
168168
169169
local res, err = httpc:request_uri(

0 commit comments

Comments
 (0)