mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-24 08:47:40 +00:00
Change CI to GitHub actions
Use copier template from oca/oca-addons-repo-template Target Python3.8 Apply linting Fix a missing call to super Ensure all modules have a 13.0.x.x.x version
This commit is contained in:
@@ -1,3 +1,2 @@
|
||||
|
||||
from . import utils
|
||||
from . import models
|
||||
|
||||
@@ -2,13 +2,14 @@
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
|
||||
|
||||
|
||||
{'name': 'Monitoring: Requests Logging',
|
||||
'version': '13.0.1.0.0',
|
||||
'author': 'Camptocamp,Numigi,Odoo Community Association (OCA)',
|
||||
'license': 'AGPL-3',
|
||||
'category': 'category',
|
||||
'depends': ['base', 'web'],
|
||||
'website': 'http://www.camptocamp.com',
|
||||
'data': [],
|
||||
'installable': True,
|
||||
}
|
||||
{
|
||||
"name": "Monitoring: Requests Logging",
|
||||
"version": "13.0.1.0.0",
|
||||
"author": "Camptocamp,Numigi,Odoo Community Association (OCA)",
|
||||
"license": "AGPL-3",
|
||||
"category": "category",
|
||||
"depends": ["base", "web"],
|
||||
"website": "https://github.com/camptocamp/odoo-cloud-platform",
|
||||
"data": [],
|
||||
"installable": True,
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
from ..utils import is_enabled
|
||||
|
||||
if is_enabled():
|
||||
|
||||
@@ -3,15 +3,16 @@
|
||||
|
||||
import json
|
||||
import time
|
||||
from os import environ
|
||||
from collections import MutableMapping
|
||||
from contextlib import suppress
|
||||
from os import environ
|
||||
|
||||
from werkzeug.exceptions import HTTPException
|
||||
|
||||
from odoo import models
|
||||
from odoo.http import request as http_request
|
||||
from odoo.tools.config import config
|
||||
|
||||
|
||||
udp_dest = environ.get("ODOO_REQUESTS_LOGGING_UDP")
|
||||
if udp_dest:
|
||||
import socket
|
||||
@@ -25,6 +26,8 @@ if udp_dest:
|
||||
def output_method(data):
|
||||
data += "\n"
|
||||
sock.sendto(data.encode("utf-8"), (ip, port))
|
||||
|
||||
|
||||
else:
|
||||
import logging
|
||||
|
||||
|
||||
@@ -6,5 +6,5 @@ from os import environ
|
||||
|
||||
|
||||
def is_enabled():
|
||||
env_val = environ.get('ODOO_REQUESTS_LOGGING')
|
||||
return bool(strtobool(env_val or '0'.lower()))
|
||||
env_val = environ.get("ODOO_REQUESTS_LOGGING")
|
||||
return bool(strtobool(env_val or "0".lower()))
|
||||
|
||||
Reference in New Issue
Block a user