From 9c0fcc9702408685200180a38086aec214e9b92b Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Fri, 22 Apr 2011 01:19:16 +0200 Subject: [PATCH] feature #575: Fix wrong stream while printing error in HookManager. Changed name of ERROR attribute --- src/hm/HookManagerDriver.cc | 2 +- src/pool/PoolObjectSQL.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hm/HookManagerDriver.cc b/src/hm/HookManagerDriver.cc index a0e708f1a1..d5c73453a6 100644 --- a/src/hm/HookManagerDriver.cc +++ b/src/hm/HookManagerDriver.cc @@ -172,7 +172,7 @@ void HookManagerDriver::protocol( if ( !info.empty() && info[0] != '-' ) { - vm->set_template_error_message(os.str()); + vm->set_template_error_message(oss.str()); vmpool->update(vm); } diff --git a/src/pool/PoolObjectSQL.cc b/src/pool/PoolObjectSQL.cc index f2c43d6147..5de6f9f99b 100644 --- a/src/pool/PoolObjectSQL.cc +++ b/src/pool/PoolObjectSQL.cc @@ -132,7 +132,7 @@ void PoolObjectSQL::set_template_error_message(const string& message) str[24] = '\0'; // Get rid of final enter character - error_value.insert(make_pair("TIME_STAMP",str)); + error_value.insert(make_pair("TIMESTAMP",str)); error_value.insert(make_pair("MESSAGE",message)); attr = new VectorAttribute(error_attribute_name,error_value);