epicsarchiver.common.command

Shared Command methods module.

Attributes

LOG

Functions

handle_debug(→ bool | int | str)

Turn on DEBUG logs, if asked otherwise INFO default.

Module Contents

epicsarchiver.common.command.LOG: logging.Logger[source]
epicsarchiver.common.command.handle_debug(_ctx: click.core.Context | None, _param: click.core.Option | click.core.Parameter | None, debug: bool | int | str) bool | int | str[source]

Turn on DEBUG logs, if asked otherwise INFO default.

Parameters:
  • _ctx (click.core.Context | None) – click context

  • _param (click.core.Option | click.core.Parameter | None) – click paramters to pass through

  • debug (bool | int | str) – debug note

Returns:

debug passed through

Return type:

bool | int | str)