remove unused libs and try to use dotenv

This commit is contained in:
2022-03-29 12:14:14 +02:00
parent 9172a5d04c
commit 46d4605099
4 changed files with 7 additions and 12 deletions
+2 -1
View File
@@ -6,6 +6,7 @@ import oci
from oci.loggingingestion import LoggingClient
from oci.loggingingestion.models import PutLogsDetails, LogEntryBatch, LogEntry
import params
from logs.AppLogging import init_logger
from pojo import ReserveResultPojo
from pojo.ReserveResultPojo import PublishType
@@ -43,7 +44,7 @@ class LogSender:
msg = "{}, email: {}".format(result.message, result.email)
self.send_log(msg, type=LOG_APPOINTMENT_ERROR)
def send_log(self, msg: str, source="Appointment", subject="appointment", type: str = "INFO"):
def send_log(self, msg: str, source=params.LOG_SOURCE, subject="appointment", type: str = "INFO"):
log_id = "ocid1.log.oc1.eu-frankfurt-1.amaaaaaacvc3jtia5enufv5jxe6binq4ndaty7pt5mk7uidipfd62ynwdhnq"
response = self._loggingingestion_client.put_logs(
log_id=log_id,