Skip to content

Commit 594b558

Browse files
Debug logging.
1 parent c0069f2 commit 594b558

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/async/utilization/metric.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def observer=(observer)
6262
outcome = :unsupported_observer
6363
end
6464

65-
# Console.info(self, "Cache validation", metric: @name, outcome: outcome)
65+
Console.info(self, "Cache validation", metric: @name, outcome: outcome)
6666

6767
write_direct(@value)
6868
end

lib/async/utilization/observer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def initialize(schema, buffer)
8282
def set(field, value)
8383
if entry = @schema[field]
8484
@buffer.set_value(entry.type, entry.offset, value)
85-
# Console.info(self, "Wrote utilization metric", field: field, value: value, offset: entry.offset)
85+
Console.info(self, "Wrote utilization metric", field: field, value: value, offset: entry.offset)
8686
end
8787
rescue => error
8888
Console.warn(self, "Failed to set field in shared memory!", field: field, exception: error)

lib/async/utilization/registry.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def observer=(observer)
7777
metric.observer = observer
7878
end
7979

80-
# Console.info(self, "Observer assigned", observer: observer, metric_count: @metrics.size)
80+
Console.info(self, "Observer assigned", observer: observer, metric_count: @metrics.size)
8181
end
8282

8383
end

0 commit comments

Comments
 (0)