Skip to content

Commit

Permalink
feat: log detected metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
metacosm committed Jul 7, 2024
1 parent 5df705c commit f01afa9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import java.util.Map;
import java.util.regex.Pattern;

import io.quarkus.logging.Log;
import net.laprun.sustainability.power.SensorMeasure;
import net.laprun.sustainability.power.SensorMetadata;
import net.laprun.sustainability.power.sensors.AbstractPowerSensor;
Expand Down Expand Up @@ -89,6 +90,7 @@ void initMetadata(InputStream inputStream) {
"macOS powermetrics derived information, see https://firefox-source-docs.mozilla.org/performance/powermetrics.html",
cpu.getTotalComponents());
cpu.setMetadata(metadata);
Log.info("Detected metadata: " + metadata);
} catch (IOException e) {
throw new RuntimeException(e);
}
Expand Down

0 comments on commit f01afa9

Please sign in to comment.