Skip to content

Commit

Permalink
chore: rewrite log message
Browse files Browse the repository at this point in the history
  • Loading branch information
marcsanmi committed Sep 9, 2024
1 parent b665de3 commit 2ead492
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion upstream/remote/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,10 @@ func (r *Remote) uploadProfile(j *upstream.UploadJob) error {
} else if r.cfg.BasicAuthUser != "" && r.cfg.BasicAuthPassword != "" {
request.SetBasicAuth(r.cfg.BasicAuthUser, r.cfg.BasicAuthPassword)
} else if r.cfg.AuthToken != "" {
r.logger.Infof("Deprecated: AuthToken is being used. Please switch to BasicAuthUser and BasicAuthPassword.")
r.logger.Infof("Authtoken is specified, but deprecated and ignored." +
"Please switch to BasicAuthUser and BasicAuthPassword. " +
"If you need to use Bearer token authentication for a custom setup, " +
"you can use the HTTPHeaders option to set the Authorization header manually.")
}
if r.cfg.TenantID != "" {
request.Header.Set("X-Scope-OrgID", r.cfg.TenantID)
Expand Down

0 comments on commit 2ead492

Please sign in to comment.