Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/instana/hooks/hook_uwsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ def uwsgi_handle_fork() -> None:
logger.debug(
f"uWSGI --master={opt_master} --lazy-apps={opt_lazy_apps}: postfork hooks not applied"
)

except ImportError:
logger.debug(
"uwsgi hooks: decorators not available: likely not running under uWSGI"
)
pass

except AttributeError:
logger.debug("uwsgi hooks: Running under uWSGI but decorators not available")
2 changes: 1 addition & 1 deletion src/instana/util/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def determine_service_name() -> str:
uwsgi_type = "uWSGI worker%s"

app_name = uwsgi_type % app_name
except ImportError:
except (ImportError, AttributeError):
pass
except Exception:
logger.debug("non-fatal get_application_name: ", exc_info=True)
Expand Down
Loading