remove unused libs and try to use dotenv
This commit is contained in:
+2
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user