Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
web-et-numerique
web-et-numerique-internet
data.grandlyon.com
web-portal
components
services
organizations
Commits
3573f260
Commit
3573f260
authored
Aug 01, 2019
by
FORESTIER Fabien
Browse files
Use the app logger as default Logger
parent
db55cdbb
Pipeline
#2364
passed with stages
in 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main.ts
View file @
3573f260
...
...
@@ -10,7 +10,7 @@ import { AppLogger } from './app-logger';
async
function
bootstrap
()
{
const
app
=
await
NestFactory
.
create
(
AppModule
,
{
logger
:
false
,
logger
:
new
AppLogger
()
,
});
app
.
enableCors
({
credentials
:
true
,
origin
:
true
,
exposedHeaders
:
'
Content-range
'
});
...
...
@@ -34,8 +34,6 @@ async function bootstrap() {
app
.
useGlobalPipes
(
new
ValidationPipe
());
app
.
useLogger
(
app
.
get
(
AppLogger
));
await
app
.
listen
(
3000
);
}
bootstrap
();
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment