Skip to content

Commit

Permalink
fix: log error instead of printing the stacktrace
Browse files Browse the repository at this point in the history
  • Loading branch information
metacosm committed May 7, 2024
1 parent 0b37e0c commit 9bfa903
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import java.nio.file.Path;
import java.util.*;

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 @@ -87,7 +88,7 @@ private static boolean addFileIfReadable(String raplFileAsString, SortedMap<Stri
final var name = Files.readString(nameFile).trim();
files.put(name, RAPLFile.createFrom(raplFile));
} catch (IOException e) {
e.printStackTrace();
Log.debug("Couldn't read file: " + nameFile, e);
return false;
}
return true;
Expand Down

0 comments on commit 9bfa903

Please sign in to comment.