Skip to content

Commit 7d93c9f

Browse files
Tilly Taylordwillist
andcommitted
only print deprecated appdynamics warnings when appdynamics is used
[#164703749] Co-authored-by: Daniel Thornton <[email protected]>
1 parent e9759fd commit 7d93c9f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/python/hooks/appdynamics.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,7 @@ func (h AppdynamicsHook) BeforeCompile(stager *libbuildpack.Stager) error {
149149
return nil
150150
}
151151

152-
h.Log.Warning("[DEPRECATION WARNING]:")
153-
h.Log.Warning("Please use AppDynamics extension buildpack for Python Application instrumentation")
154-
h.Log.Warning("for more details: https://docs.pivotal.io/partners/appdynamics/multibuildpack.html")
152+
// Some env var or something that lets us know that we are using app dynamics?
155153

156154
vcapServices := os.Getenv("VCAP_SERVICES")
157155
services := make(map[string][]Plan)
@@ -168,6 +166,9 @@ func (h AppdynamicsHook) BeforeCompile(stager *libbuildpack.Stager) error {
168166
return nil
169167
} else if match {
170168
appdServiceName = serviceName
169+
h.Log.Warning("[DEPRECATION WARNING]:")
170+
h.Log.Warning("Please use AppDynamics extension buildpack for Python Application instrumentation")
171+
h.Log.Warning("for more details: https://docs.pivotal.io/partners/appdynamics/multibuildpack.html")
171172
break
172173
}
173174
}

0 commit comments

Comments
 (0)