Skip to content

Commit

Permalink
Added debug message for platform.
Browse files Browse the repository at this point in the history
  • Loading branch information
elgatito committed Aug 29, 2023
1 parent a04ecb1 commit 170f8f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/site-packages/elementum/osarch.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@ def get_platform():

auto_platform = detect_platform()
if not auto_platform or '-' not in auto_platform:
log.info("Cannot automatically detect platform. Falling back to legacy way.")
return get_platform_legacy()

auto_arch = auto_platform.split('-')
ret["os"] = auto_arch[0]
ret["arch"] = auto_arch[1]
log.debug("Automatically detected platform: %s. Returning: %s" % (auto_platform, repr(ret)))

return ret

Expand Down

0 comments on commit 170f8f5

Please sign in to comment.