Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add getLogger to app and ctx #136

Merged
merged 1 commit into from
Nov 2, 2016
Merged

feat: add getLogger to app and ctx #136

merged 1 commit into from
Nov 2, 2016

Conversation

popomore
Copy link
Member

@popomore popomore commented Nov 1, 2016

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

app and ctx

Description of change

it can be override with custom function

Closes #36

@mention-bot
Copy link

@popomore, thanks for your PR! By analyzing the history of the files in this pull request, we identified @fengmk2 and @dead-horse to be potential reviewers.

@popomore
Copy link
Member Author

popomore commented Nov 1, 2016

看来 eslint break 了 eslint/eslint#7403

@popomore popomore force-pushed the get-logger branch 2 times, most recently from c2ec69a to 8d2ceb2 Compare November 1, 2016 13:17
@codecov-io
Copy link

codecov-io commented Nov 1, 2016

Current coverage is 95.69% (diff: 100%)

Merging #136 into master will increase coverage by 0.02%

@@             master       #136   diff @@
==========================================
  Files            33         33          
  Lines           832        836     +4   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits            796        800     +4   
  Misses           36         36          
  Partials          0          0          

Powered by Codecov. Last update 4e62112...515eaf5

@popomore popomore force-pushed the get-logger branch 2 times, most recently from bb0743e to 8a36b84 Compare November 1, 2016 13:47
@fengmk2
Copy link
Member

fengmk2 commented Nov 1, 2016

+1

@fengmk2
Copy link
Member

fengmk2 commented Nov 2, 2016

rebase 一下

@popomore
Copy link
Member Author

popomore commented Nov 2, 2016

把 circle ci 关了?

@fengmk2
Copy link
Member

fengmk2 commented Nov 2, 2016

circle 关了

@@ -45,6 +45,7 @@ exports.startLocalServer = () => {
});
});
};
process.once('exit', () => localServer.close());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好吧,mocha 好像不管是否还有 server,都是自己退出的。

@@ -5,7 +5,7 @@ const urllib = require('../../../lib/core/urllib');

describe('test/lib/core/urllib.test.js', () => {
let client;
const url = 'https://a.alipayobjects.com/aliBridge/1.0.0/aliBridge.min.js';
const url = 'http://www.google.com/generate_204';
Copy link
Member

@fengmk2 fengmk2 Nov 2, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

改成 localServer 的吧,要不然本地运行这个 ci google 别墙,跑不过。

it can be override with custom function

Closes #36
@popomore
Copy link
Member Author

popomore commented Nov 2, 2016

改了

@fengmk2
Copy link
Member

fengmk2 commented Nov 2, 2016

+1

@fengmk2 fengmk2 merged commit cd99a1f into master Nov 2, 2016
@fengmk2 fengmk2 deleted the get-logger branch November 2, 2016 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add ctx.getLogger(name)
4 participants