Skip to content

bug: hook_conf must be present in debug.yaml, otherwise it will throw an exception #7159

@amrellafy

Description

@amrellafy

Current Behavior

if hook_config is not present, the following exception will be thrown

apisix attempt to index local 'hook_conf' (a nil value)

local hook_conf = debug_yaml.hook_conf
should include a check.

Expected Behavior

not throwing an error if hook_conf is not present.

Error Logs

No response

Steps to Reproduce

  1. create a debug.yaml
  2. do not incude hook_conf

Environment

  • APISIX version 2.14.1
  • on Docker

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions