Skip to content

Commit

Permalink
D42-18452 Fresh Service - GitHub Script - Error on Incremental Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanNyschuk committed Dec 21, 2020
1 parent e62af50 commit a22c76c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions freshservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import requests
from datetime import datetime
import time
import logging

requests.packages.urllib3.disable_warnings()

Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit a22c76c

Please sign in to comment.