Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@azu
Copy link
Member

@azu azu commented Jul 27, 2017

Detect the log is in a transaction by meta.transaction.id.
It make correct the order output of transaction log.

almin-logger example 2017-07-27 11-06-40

#244

azu added 2 commits July 27, 2017 11:09
Detect the log is in a transaction by `meta.transaction.id`.
It make correct the order output of transaction log.
"dependencies": {
"almin": "^0.13.0",
"almin-logger": "file:../",
"almin-logger": "^5.0.0",
Copy link
Member Author

Choose a reason for hiding this comment

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

link by lerna

},
"packages": [
"packages/*",
"packages/almin-logger/examples",
Copy link
Member Author

Choose a reason for hiding this comment

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

add example to lerna

return;
}
const logGroup = new LogGroup({ title: meta.transaction.name, isTransaction: true });
this._transactionMap.set(meta.transaction.id, logGroup);
Copy link
Member Author

Choose a reason for hiding this comment

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

Support transaction.id

const transactionName = meta.transaction && meta.transaction.name;
if (transactionName) {
return this._transactionMap.get(transactionName);
const transactionId = meta.transaction && meta.transaction.id;
Copy link
Member Author

Choose a reason for hiding this comment

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

use transaction.id insteadof transaction.name

@azu azu merged commit bea2b3a into master Jul 27, 2017
@azu azu deleted the almin-logger-transaction-id branch July 27, 2017 10:29
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.

2 participants