TP-5555 | clean up
This commit is contained in:
@@ -20,7 +20,7 @@ func initiateLogger() *zap.Logger {
|
||||
config := zap.NewProductionConfig()
|
||||
config.EncoderConfig = ecszap.ECSCompatibleEncoderConfig(config.EncoderConfig)
|
||||
log, err := config.Build(ecszap.WrapCoreOption(), zap.AddCallerSkip(1))
|
||||
log = log.With(zap.String("service", "t-store"))
|
||||
log = log.With(zap.String("service", "cybertron"))
|
||||
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
||||
@@ -47,7 +47,7 @@ func (s *SourceMapService) GetSourceMapUploadUrl(ctx *gin.Context) {
|
||||
}
|
||||
|
||||
//generate s3 pre-signed url
|
||||
key := path.Join("source-map-cache", projectId, releaseId, fileName)
|
||||
key := path.Join(projectId, releaseId, fileName)
|
||||
bucket := s.awsConfig.Bucket
|
||||
request, err := s.s3Client.S3PresignClient.PresignPutObject(context.TODO(), &s3.PutObjectInput{
|
||||
Bucket: &bucket,
|
||||
|
||||
Reference in New Issue
Block a user