Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.

Adds emptiness time checking. #116

Merged
merged 1 commit into from
Mar 15, 2016

Conversation

chris-ramon
Copy link
Contributor

Details

@@ -39,6 +39,8 @@ type App struct {

tmplLock sync.Mutex
tmpls map[string]*htmpl.Template

log bool
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be exported since you have no other way of setting this? I assume there would be cases where you'd want to disable the extra logging.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch, def. agree on letting lib users decide to disable app logging, fixed on: chris-ramon@66b5c2e

@chris-ramon chris-ramon force-pushed the d3timeline-improvements branch from c4976e7 to 66b5c2e Compare March 10, 2016 21:26
@@ -39,6 +39,8 @@ type App struct {

tmplLock sync.Mutex
tmpls map[string]*htmpl.Template

Log bool
Copy link
Member

Choose a reason for hiding this comment

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

I think it would make sense to have this be a *log.Logger instead. See how we do this for ChunkedCollector for example: https://github.com/sourcegraph/appdash/blob/master/collector.go#L148

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good call, def. agree on making it a logger, fixed on 6f70b13.

@emidoots
Copy link
Member

One minor comment, aside from that LGTM

@chris-ramon chris-ramon force-pushed the d3timeline-improvements branch from 66b5c2e to e5de73f Compare March 15, 2016 17:16
@chris-ramon chris-ramon force-pushed the d3timeline-improvements branch from e5de73f to 6f70b13 Compare March 15, 2016 17:21
@emidoots
Copy link
Member

Perfect, thanks @chris-ramon ! :)

emidoots pushed a commit that referenced this pull request Mar 15, 2016
@emidoots emidoots merged commit 6900838 into sourcegraph:master Mar 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants