Skip to content

Logging and debugging#

LUNA PASS has two operating modes:

  • development — the mode that allows to send to LUNA PASS UI all Liveness metrics without changes;

  • production — mode that allows to send to LUNA PASS UI only errors and coordinates of the face in the frame.

The development mode allows you to track the correctness of LUNA PASS operation and is usually used during the debugging and testing period.

In an industrial circuit, it is recommended to enable the production mode.

Mode switching is performed in the configuration file config.toml in the variable ENV.

Enable thefile_logger handler in the config.toml file — saving all requests and responses within one session to a file.