Skip to content

Commit

Permalink
add more detail logging message
Browse files Browse the repository at this point in the history
  • Loading branch information
Leow, Max committed Aug 18, 2022
1 parent 61afbde commit 2f5b752
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions duck_jenkins/_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ def pull_upstream(
:return:
"""
json_file = get_json_file(self.data_directory, self.domain_name, project_name, build_number)
logging.info("JenkinsData.pull_upstream - Pulling upstream, file[%s]: %s", json_file, os.path.exists(json_file))
logging.info("JenkinsData.pull_upstream - Pulling upstream, file: [%s], existed: %s",
os.path.abspath(json_file),
os.path.exists(json_file))

if not os.path.exists(json_file):
raise FileNotFoundError(json_file)
Expand Down Expand Up @@ -282,7 +284,7 @@ def _request():
else:
json_file = None
time.sleep(2)
logging.error('JenkinsData._pull - Request failed for: %s %s', project_name, build_number)
logging.error('JenkinsData._pull - Request failed: %s, retrying: %s', get.reason, retry)
retry += 1
if retry > 5:
break
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="duck-jenkins",
version="0.0.23",
version="0.0.24",
install_requires=[
"duckdb",
"pandas",
Expand Down

0 comments on commit 2f5b752

Please sign in to comment.