Skip to content

Commit

Permalink
Merge pull request #165 from AthennaIO/develop
Browse files Browse the repository at this point in the history
Use rc.shutdownLogs property in LoadHelper
  • Loading branch information
jlenon7 authored Mar 31, 2023
2 parents 185f81a + 2da9522 commit df82b5f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@athenna/core",
"version": "3.5.0",
"version": "3.5.1",
"description": "The plug and play Node.js framework.",
"license": "MIT",
"author": "João Lenon <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion src/Helpers/LoadHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class LoadHelper {
*/
public static async shutdownProviders(): Promise<void> {
await Exec.concurrently(this.providers, Provider => {
if (Config.is('rc.bootLogs', true)) {
if (Config.is('rc.shutdownLogs', true)) {
Log.channelOrVanilla('application').success(
`Provider ({yellow} ${Provider.name}) successfully shutdown`,
)
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/Helpers/LoadHelperTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ export default class LoadHelperTest extends BaseTest {
}

@Test()
public async shouldBeAbleToLogThatProvidersAreShutingdownIfRcBootLogsIsTrue({ assert }: TestContext) {
Config.set('rc.bootLogs', true)
public async shouldBeAbleToLogThatProvidersAreShutingdownIfRcShutdownLogsIsTrue({ assert }: TestContext) {
Config.set('rc.shutdownLogs', true)

const mock = Log.getMock()
const successFake = fake()
Expand Down

0 comments on commit df82b5f

Please sign in to comment.