Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
Factory
Resin
Server
Commits
1fb3c7f2
Commit
1fb3c7f2
authored
3 years ago
by
Hugo SUBTIL
Browse files
Options
Downloads
Patches
Plain Diff
feat(logger): restrict logging for production
parent
404a6259
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!125
1.14
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main.ts
+4
-1
4 additions, 1 deletion
src/main.ts
with
4 additions
and
1 deletion
src/main.ts
+
4
−
1
View file @
1fb3c7f2
...
...
@@ -4,7 +4,10 @@ import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
import
{
AppModule
}
from
'
./app.module
'
;
async
function
bootstrap
()
{
const
app
=
await
NestFactory
.
create
(
AppModule
);
const
app
=
await
NestFactory
.
create
(
AppModule
,
{
logger
:
process
.
env
.
NODE_ENV
===
'
production
'
?
[
'
error
'
,
'
warn
'
,
'
log
'
]
:
[
'
log
'
,
'
debug
'
,
'
error
'
,
'
verbose
'
,
'
warn
'
],
});
app
.
useGlobalPipes
(
new
ValidationPipe
());
const
options
=
new
DocumentBuilder
()
.
setTitle
(
`Res'in`
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment