Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1871)

Issue 57610043: Making sure the extra log functions are unique. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 3 months ago by pajamallama
Modified:
10 years, 3 months ago
Reviewers:
tapted
CC:
chrome-apps-internsyd_google.com
Base URL:
https://github.com/tapted/bleeding_edge.git@master
Visibility:
Public.

Description

Making sure the extra log functions are unique. Previously, if log.addLoggerFunction were called n times with the same function then each log message would appear n times. This would be noticed in Spark when tavern is called multiple times as the log.addLoggerFunction is called every time. R=tapted@chromium.org Committed: https://github.com/tapted/bleeding_edge/commit/a6ef445

Patch Set 1 #

Total comments: 2

Patch Set 2 : Replaced var with Set<Function> #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M dart/sdk/lib/_internal/pub/lib/src/log.dart View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4
pajamallama
In theory I could set a flag to Spark to make sure the extra log ...
10 years, 3 months ago (2014-01-28 04:08:32 UTC) #1
tapted
lgtm. I guess it is common in <insert random logging framework> to have a run_once/singleton ...
10 years, 3 months ago (2014-01-28 05:48:11 UTC) #2
pajamallama
Committed patchset #2 manually as ra6ef445 (presubmit successful).
10 years, 3 months ago (2014-01-28 06:51:13 UTC) #3
pajamallama
10 years, 3 months ago (2014-01-28 06:52:21 UTC) #4
Message was sent while issue was closed.
https://codereview.appspot.com/57610043/diff/1/dart/sdk/lib/_internal/pub/lib...
File dart/sdk/lib/_internal/pub/lib/src/log.dart (right):

https://codereview.appspot.com/57610043/diff/1/dart/sdk/lib/_internal/pub/lib...
dart/sdk/lib/_internal/pub/lib/src/log.dart:38: var _otherLogFunctions = new
LinkedHashSet<Function>();
On 2014/01/28 05:48:12, tapted wrote:
> nit: maybe Collection<Function>? I think it's nice to have data members with a
> known type rather than `var`

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b