Skip to content

Commit

Permalink
Fix: Managedなやつでおかしかったとこ直した
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyatea committed Jul 17, 2024
1 parent 0e23ac3 commit eecd2b7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions packages/backend/src/boot/master.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,13 @@ export async function masterMain() {

function showEnvironment(): void {
const env = process.env.NODE_ENV;
const managed = process.env.IS_MANAGED === 'true';
const logger = bootLogger.createSubLogger('env');
logger.info(typeof env === 'undefined' ? 'NODE_ENV is not set' : `NODE_ENV: ${env}`);

if (env !== 'production') {
logger.warn('The environment is not in production mode.');
logger.warn('DO NOT USE FOR PRODUCTION PURPOSE!', null, true);
}
if (managed) {
logger.info('Type4ny is running in a managed mode.');
}
}

function showNodejsVersion(): void {
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const envOption = {
verbose: false,
withLogTime: false,
quiet: false,
managed: true,
managed: false,
};

for (const key of Object.keys(envOption) as (keyof typeof envOption)[]) {
Expand Down

0 comments on commit eecd2b7

Please sign in to comment.