mirror of
https://github.com/caprover/caprover
synced 2026-09-26 08:35:39 +00:00
remove the useless error message in logs
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user