Skip to content

Commit

Permalink
chore: logs
Browse files Browse the repository at this point in the history
  • Loading branch information
nicosantangelo committed Jul 19, 2022
1 parent 3384189 commit e1b88e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions src/S3/s3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,7 @@ export function uploadFile(
ACL: acl,
ContentType,
}
log.info(
`Uploading file "${key}" and params ${JSON.stringify(
utils.omit(params, ['Body'])
)}`
)
log.info(`Uploading file "${key}"`)

return utils.promisify<AWS.S3.ManagedUpload.SendData>(s3.upload.bind(s3))(
params
Expand Down
4 changes: 2 additions & 2 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { AnalyticsRouter } from './Analytics'
import { NFTRouter } from './NFT'
import { db } from './database'
import { ExpressApp } from './common/ExpressApp'
// import { withLogger } from './middleware'
import { withLogger } from './middleware'
import { ProjectByCoordRouter } from './Project'
import { errorHandler } from './common/errorHandler'

Expand All @@ -38,7 +38,7 @@ const logs = createConsoleLogComponent()

app
.useCORS(CORS_ORIGIN, CORS_METHOD)
// .use(withLogger())
.use(withLogger())
.useJSON()
.useVersion(API_VERSION)
.useMetrics()
Expand Down

0 comments on commit e1b88e8

Please sign in to comment.