Skip to content

Commit

Permalink
bte/service provider: add custom log_level param for async endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
colleenXu committed Apr 12, 2024
1 parent 169b3ce commit 057aceb
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
32 changes: 32 additions & 0 deletions biothings_explorer/service-provider-trapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,22 @@ paths:
# required: true
# schema:
# type: string
# - description: >-
# When specified, the TRAPI logs returned will be of this level of importance or higher. This setting
# will override the log_level setting in the job's TRAPI query.

# If it's not specified, BTE will use the log_level setting in the job's TRAPI query or return all logs
# (the default).
# in: query
# name: log_level
# required: false
# schema:
# type: string
# enum:
# - ERROR
# - WARNING
# - INFO
# - DEBUG
# responses:
# '200':
# description: >-
Expand Down Expand Up @@ -318,6 +334,22 @@ paths:
# required: true
# schema:
# type: string
# - description: >-
# When specified, the TRAPI logs returned will be of this level of importance or higher. This setting
# will override the log_level setting in the job's TRAPI query.

# If it's not specified, BTE will use the log_level setting in the job's TRAPI query or return all logs
# (the default).
# in: query
# name: log_level
# required: false
# schema:
# type: string
# enum:
# - ERROR
# - WARNING
# - INFO
# - DEBUG
# responses:
# '200':
# description: >-
Expand Down
32 changes: 32 additions & 0 deletions biothings_explorer/smartapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,22 @@ paths:
required: true
schema:
type: string
- description: >-
When specified, the TRAPI logs returned will be of this level of importance or higher. This setting
will override the log_level setting in the job's TRAPI query.
If it's not specified, BTE will use the log_level setting in the job's TRAPI query or return all logs
(the default).
in: query
name: log_level
required: false
schema:
type: string
enum:
- ERROR
- WARNING
- INFO
- DEBUG
responses:
'200':
description: >-
Expand Down Expand Up @@ -781,6 +797,22 @@ paths:
required: true
schema:
type: string
- description: >-
When specified, the TRAPI logs returned will be of this level of importance or higher. This setting
will override the log_level setting in the job's TRAPI query.
If it's not specified, BTE will use the log_level setting in the job's TRAPI query or return all logs
(the default).
in: query
name: log_level
required: false
schema:
type: string
enum:
- ERROR
- WARNING
- INFO
- DEBUG
responses:
'200':
description: >-
Expand Down

0 comments on commit 057aceb

Please sign in to comment.