diff options
author | Patrick Venture <venture@google.com> | 2019-03-14 14:10:03 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2019-03-18 15:38:08 +0000 |
commit | e6e6f62680cf77c0a742ca806609d10103273b07 (patch) | |
tree | 0036f6e99d6a41ddb331f032ff87d537fd01413e | |
parent | b5cc37cebec74f0bd2a8d378d5f911fc4fa3439e (diff) | |
download | phosphor-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.hpp | 2 |
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)); } } |