Skip to content
Health
73/100
fair
  • Security25/25
    No findings
  • Activityn/a
    No commit data
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 9 Odoo series since 10.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
4 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.09 MB
Module directory on disk
Code analysis 1 migration note 1 model 3 views 0 HTTP endpoints

Description

When exposing REST services is often useful to see what's happening especially in case of errors.

This module add DB logging for REST requests. It also inject in the response the URL of the log entry created.

NOTE: this feature was implemented initially inside shopfloor app. Up to version 13.0.1.2.1 of this module, if shopfloor is installed, log records will be copied from its table.

Dependencies

Odoo dependencies
OCA/rest-framework:
odoo/odoo:
- web
Python dependencies
apispec, cerberus, parse-accept-language, pyquerystring
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 3

XML IDNameModelTypeStatus
rest_log_form_view rest.log form rest.log form New
rest_log_search_view rest.log search rest.log search New
rest_log_tree_view rest.log tree rest.log list New

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 1

New fields (12)
  • collection Char
    index=True
  • collection_id Integer
    index=True string='Collection ID'
  • error Text
    readonly=True
  • exception_message Text
    readonly=True
  • exception_name Char
    readonly=True string='Exception'
  • headers Text
    readonly=True
  • params Text
    readonly=True
  • request_method Char
    readonly=True
  • request_url Char
    readonly=True string='Request URL'
  • result Text
    readonly=True
  • severity Selection
    compute='_compute_severity' readonly=False selection=[('functional', 'Functional'), ('warning', 'Warning'), ('severe', 'Severe')] store=True
  • state Selection
    readonly=True selection=[('success', 'Success'), ('failed', 'Failed')]
Public methods (3)
  • action_view_collection(self)
    Open collection if we have a real record. NOTE: use an action instead of a `Reference` field with computed method because it would force use to have glue modules to provide a selection for every model we want to support.
  • autovacuum(self)
    Delete logs which have exceeded their retention duration Called from a cron.
  • logging_active(self)

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…