From 02eff1880f80a9d9b00385814b4b7ed7a4acffa8 Mon Sep 17 00:00:00 2001 From: xtremxpert Date: Wed, 30 Jul 2025 14:16:04 -0400 Subject: [PATCH] msg attach log --- .../models/ir_attachment.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/msg_attachments_to_mail_message/models/ir_attachment.py b/msg_attachments_to_mail_message/models/ir_attachment.py index fa65dd7..cedf16a 100644 --- a/msg_attachments_to_mail_message/models/ir_attachment.py +++ b/msg_attachments_to_mail_message/models/ir_attachment.py @@ -32,11 +32,14 @@ from io import BytesIO _logger = logging.getLogger(__name__) _msg_import_logger = logging.getLogger("msg.import") -handler = logging.FileHandler("/var/log/odoo/msg_import.log") -formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s") -handler.setFormatter(formatter) -_msg_import_logger.addHandler(handler) -_msg_import_logger.setLevel(logging.ERROR) + +# BV: THIS IS FOR REMOVING ERROR IN DEV +# DO WE STILL NEED IT +#handler = logging.FileHandler("/var/log/odoo/msg_import.log") +#formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s") +#handler.setFormatter(formatter) +#_msg_import_logger.addHandler(handler) +#_msg_import_logger.setLevel(logging.ERROR) class IrAttachment(models.Model): _inherit = "ir.attachment"