commit | a3bf0509e01c6b32a13cfd16060e4a537706f231 | [log] [tgz] |
---|---|---|
author | David Chen <dwchen@google.com> | Wed Nov 01 16:57:43 2017 -0700 |
committer | David Chen <dwchen@google.com> | Wed Nov 01 17:02:33 2017 -0700 |
tree | 2a1b8780d41e1178d368aeffd49554bcc771ad13 | |
parent | 1b7c2e9f575fca61fb8854df5dbe3f6bd9e4aa59 [diff] |
Fixes LogEvent constructor to use reference. Previously when fixing LogEvent missing strings because of pointer lifetime issues, I had the constructor for LogEvent pass log_msg by value. This fixes log_msg to pass by reference again so that we avoid wasting memory. Test: Checked statsd unit-tests still pass. Change-Id: I94ac4d1bed19fec19d44e27fe94e07ab30383363