remove the useless error message in logs

This commit is contained in:
Kasra Bigdeli
2021-09-07 18:38:29 -07:00
parent 8edf03706b
commit aaddb62fa4
+6
View File
@@ -101,6 +101,12 @@ export function injectUserForBuildTrigger() {
const namespace = locals.namespace
const appName = req.params.appName as string
if (!!req.header(CaptainConstants.headerAuth)) {
// Auth header is present, skip user injection for app token
next()
return
}
if (!token || !namespace || !appName) {
Logger.e(
'Trigger app build is called with no token/namespace/appName'