Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

a few minor things #3554

Merged
merged 3 commits into from
Aug 30, 2016
Merged

a few minor things #3554

merged 3 commits into from
Aug 30, 2016

Conversation

mrose17
Copy link
Member

@mrose17 mrose17 commented Aug 30, 2016

  1. if process.env-NODE_ENV === ‘test’ then set the synopsis option minDuration to 0 msecs
  2. if process.env.LEDGER_PUBLISHER_DEBUG === true then show how visits are counted -- for Significant lag between browser history and ledger listing #3451
  3. better error printing in one case
  4. include the ledger-publisher code for handling new Set()

auditor: @diracdeltas

1. if `process.env-NODE_ENV === ‘test’` then set the `synopsis` option
`minDuration` to 0 msecs

2. if `process.env.LEDGER_PUBLISHER_DEBUG === true` then show how
visits are counted

3. better error printing in one case

4. include the `ledger-publisher` code for handling `new Set()`
@mrose17 mrose17 added this to the 0.11.6dev milestone Aug 30, 2016
@mrose17 mrose17 self-assigned this Aug 30, 2016
@@ -467,16 +465,19 @@ var updatePublisherInfo = () => {
syncWriter(pathName(publisherPath), data, () => {})
syncWriter(pathName(scoresPath), synopsis.allN(), () => {})

if (synopsis.options.minDuration === 0) synopsis.options.minDuration = 8 * msecs.second
Copy link
Member

Choose a reason for hiding this comment

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

why is it set to 8s here?

Copy link
Member Author

Choose a reason for hiding this comment

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

because that is the actual default value, and when the synopsis is written out, i don't want it to be zero, so that when someone starts the browser without process.env.NODE_ENV being test, they won't get surprised... but, i see an easier fix. please stand by.

Copy link
Member Author

Choose a reason for hiding this comment

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

@diracdeltas - i think the latest commit simplifies things.

@mrose17 mrose17 merged commit 84eceee into master Aug 30, 2016
@mrose17 mrose17 deleted the add-additional-publisher-debugging branch August 30, 2016 16:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants