summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/components/log/scribe.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'sca-cpp/trunk/components/log/scribe.hpp')
-rw-r--r--sca-cpp/trunk/components/log/scribe.hpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/sca-cpp/trunk/components/log/scribe.hpp b/sca-cpp/trunk/components/log/scribe.hpp
index 5ae8a50776..0f0570be64 100644
--- a/sca-cpp/trunk/components/log/scribe.hpp
+++ b/sca-cpp/trunk/components/log/scribe.hpp
@@ -66,7 +66,6 @@ namespace scribe {
class Scribe {
public:
Scribe() : owner(false) {
- debug("scribe::scribe");
}
Scribe(const string host, const int port) : owner(true) {
@@ -80,9 +79,18 @@ public:
client = c.client;
transport = c.transport;
}
+
+ const Scribe& operator=(const Scribe& c) {
+ debug("scribe::scribe::operator=");
+ if(this == &c)
+ return *this;
+ owner = false;
+ client = c.client;
+ transport = c.transport;
+ return *this;
+ }
~Scribe() {
- debug("scribe::~scribe");
if (!owner)
return;
try {