From a22c76cf48b536486db46e9e1a1a2d34960916d4 Mon Sep 17 00:00:00 2001 From: Roman Nyschuk Date: Mon, 21 Dec 2020 12:03:06 -0500 Subject: [PATCH] D42-18452 Fresh Service - GitHub Script - Error on Incremental Sync --- freshservice.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/freshservice.py b/freshservice.py index 3e8b071..5135ab7 100755 --- a/freshservice.py +++ b/freshservice.py @@ -4,6 +4,7 @@ import requests from datetime import datetime import time +import logging requests.packages.urllib3.disable_warnings() @@ -119,9 +120,9 @@ def _put(self, path, data): def _delete(self, path, data=None): return self._send("DELETE", path, data) - def _log(self, message, level="DEBUG"): + def _log(self, message, level=logging.DEBUG): if self.logger: - self.logger.log(level.upper(), message) + self.logger.log(level, message) def insert_asset(self, data): path = "api/v2/assets"