summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2019-03-14 14:10:03 -0700
committerPatrick Venture <venture@google.com>2019-03-18 15:38:08 +0000
commite6e6f62680cf77c0a742ca806609d10103273b07 (patch)
tree0036f6e99d6a41ddb331f032ff87d537fd01413e
parentb5cc37cebec74f0bd2a8d378d5f911fc4fa3439e (diff)
downloadphosphor-pid-control-e6e6f62680cf77c0a742ca806609d10103273b07.tar.gz
phosphor-pid-control-e6e6f62680cf77c0a742ca806609d10103273b07.zip
pid: zone: add zone id to log name
When a log path is provided, append the zone id to the log so that each zone will have its own log file. Change-Id: I56f92669eda23148127f53fd50e119912a24200b Signed-off-by: Patrick Venture <venture@google.com>
-rw-r--r--pid/zone.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/pid/zone.hpp b/pid/zone.hpp
index a458011..78ebf0f 100644
--- a/pid/zone.hpp
+++ b/pid/zone.hpp
@@ -54,7 +54,7 @@ class PIDZone : public ZoneInterface, public ModeObject
{
if (tuningLoggingEnabled && !tuningLoggingPath.empty())
{
- _log.open(tuningLoggingPath);
+ _log.open(tuningLoggingPath + std::to_string(zone));
}
}
OpenPOWER on IntegriCloud