Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Don't log on normal stop of gascheduler#5

Merged
chrisavl merged 3 commits intomasterfrom
normal_stop
Jun 19, 2015
Merged

Don't log on normal stop of gascheduler#5
chrisavl merged 3 commits intomasterfrom
normal_stop

Conversation

@complex64
Copy link
Copy Markdown

No description provided.

Comment thread src/gascheduler.erl Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Perhaps we could check that there are no running or pending tasks before deciding not to log?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Absolutely. So when is the normal clause invoked? And how is the logging output used?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It is used to see the scheduler stopped cleanly. The scheduler does not stop very often, so this is useful information to have for debugging.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

IMHO, it is better to be explicit rather than implicitly print nothing if it stopped cleanly.

@complex64
Copy link
Copy Markdown
Author

Yup, fair enough.

@complex64 complex64 closed this Jun 2, 2015
@chrisavl chrisavl reopened this Jun 19, 2015
@chrisavl chrisavl assigned elverkilde and unassigned cmdevries Jun 19, 2015
@chrisavl
Copy link
Copy Markdown
Contributor

Re-opening this because gascheduler taints the test console logs. (It didn't use to do it but I can't figure out why so I suggest we merge this instead) see https://magnum.travis-ci.com/GameAnalytics/gastream/jobs/18898896

chrisavl added a commit that referenced this pull request Jun 19, 2015
Don't log on normal stop of gascheduler
@chrisavl chrisavl merged commit 7369991 into master Jun 19, 2015
@chrisavl chrisavl deleted the normal_stop branch June 19, 2015 12:22
chrisavl added a commit that referenced this pull request Jul 29, 2015
Don't log on normal stop of gascheduler
chrisavl added a commit that referenced this pull request Jul 29, 2015
Don't log on normal stop of gascheduler
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.

4 participants