File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
microservices/gatewayApi/patterns/sdx Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 137
137
local function read_file(filename)
138
138
local file = io.open(filename, "r")
139
139
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)
142
142
end
143
143
144
144
local content = file:read("*all") -- Read entire file
162
162
}
163
163
164
164
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")
167
167
end
168
168
169
169
local res, err = httpc:request_uri(
You can’t perform that action at this time.
0 commit comments