Skip to content

Commit

Permalink
chore(core): add logfile tips
Browse files Browse the repository at this point in the history
  • Loading branch information
binggg committed Jan 7, 2021
1 parent 4e9b398 commit f41209c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/framework-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { CloudApi } from './api';
import resolveConfig from './config/resolve-config';
import Context from './context';
import { CloudBaseFrameworkConfig, Config } from './types';
import getLogger from './logger';
import getLogger, { getLogFilePath } from './logger';
import { SamManager } from './sam';
import { genAddonSam } from './sam/addon';
import Hooks from './hooks';
Expand Down Expand Up @@ -201,6 +201,7 @@ export class CloudBaseFrameworkCore {
(code as string) in USER_ERRORS_MAP ? 'UserError' : 'SystemError';

logger.error(message);
logger.info('部署日志:', getLogFilePath());
if (!this.isDeploy) {
// 非部署情况不上报
return;
Expand Down

0 comments on commit f41209c

Please sign in to comment.