Skip to content

Commit

Permalink
3
Browse files Browse the repository at this point in the history
  • Loading branch information
chobits committed Oct 9, 2024
1 parent f7bdb82 commit 596581e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kong/db/dao/workspaces.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function Workspaces:truncate()
return true
end

ngx.log(ngx.ERR, "+++ insert default")
ngx.log(ngx.WARN, "+++ insert default")
local default_ws, err = self:insert({ name = "default" })
if err then
kong.log.err(err)
Expand All @@ -28,7 +28,7 @@ end

function Workspaces:select_by_name(key, options)
if kong.configuration.database == "off" and key == "default" then
ngx.log(ngx.ERR, "+++ try to get id from off/default")
ngx.log(ngx.WARN, "+++ try to get id from off/default")
-- it should be a table, not a single string
return { id = lmdb.get(DECLARATIVE_DEFAULT_WORKSPACE_KEY), }
end
Expand Down

0 comments on commit 596581e

Please sign in to comment.