We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43cba41 commit 68dc494Copy full SHA for 68dc494
instana/util.py
@@ -392,7 +392,7 @@ def determine_service_name():
392
393
# Get first argument that is not an CLI option
394
for candidate in sys.argv:
395
- if candidate[0] != '-':
+ if len(candidate) > 0 and candidate[0] != '-':
396
basename = candidate
397
break
398
@@ -449,7 +449,7 @@ def determine_service_name():
449
except ImportError:
450
pass
451
except Exception:
452
- logger.debug("get_application_name: ", exc_info=True)
+ logger.debug("non-fatal get_application_name: ", exc_info=True)
453
finally:
454
return app_name
455
0 commit comments