mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 12:14:33 +01:00
Add info message on app boot
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { ApplicationContract } from '@ioc:Adonis/Core/Application'
|
||||
import Logger from "@ioc:Adonis/Core/Logger";
|
||||
|
||||
export default class AppProvider {
|
||||
public static needsApplication = true
|
||||
@@ -12,13 +13,16 @@ export default class AppProvider {
|
||||
|
||||
public async boot () {
|
||||
// IoC container is ready
|
||||
Logger.info('Application is booting. Please wait...')
|
||||
}
|
||||
|
||||
public async ready () {
|
||||
// App is ready
|
||||
Logger.info('Application is ready!')
|
||||
}
|
||||
|
||||
public async shutdown () {
|
||||
// Cleanup, since app is going down
|
||||
Logger.info('Application is closing. Bye...')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user