]> granicus.if.org Git - pdns/commitdiff
add goracle backend query logging
authorKees Monshouwer <mind04@monshouwer.org>
Tue, 31 Dec 2013 08:17:06 +0000 (09:17 +0100)
committermind04 <mind04@monshouwer.org>
Wed, 1 Jan 2014 09:01:27 +0000 (10:01 +0100)
modules/goraclebackend/soracle.cc

index d653e825b7fd122ee60c28caf03f6a57ed7d39c9..a76b07d7179d3af19e86a0dd9d40a1c72a00dce0 100644 (file)
@@ -147,6 +147,9 @@ int SOracle::doQuery(const string &query)
   if(query=="begin") // oracle does this implicitly
     return 0;
 
+  if(s_dolog)
+    L<<Logger::Warning<<"Query: "<<query<<endl;
+
   int err = OCIHandleAlloc(d_environmentHandle, (dvoid **) &d_handle, OCI_HTYPE_STMT, 0, NULL);
          
   if (err) {