VERBOSE macro not needed any more
authorVolker Birk <vb@pep-project.org>
Wed, 14 Oct 2015 01:57:44 +0200
changeset 52a538377e9d81
parent 51 9c68434e7745
child 53 53c3c75186b0
VERBOSE macro not needed any more
CpEpEngine.cpp
     1.1 --- a/CpEpEngine.cpp	Wed Oct 07 21:04:19 2015 +0200
     1.2 +++ b/CpEpEngine.cpp	Wed Oct 14 01:57:44 2015 +0200
     1.3 @@ -3,8 +3,6 @@
     1.4  #include "stdafx.h"
     1.5  #include "CpEpEngine.h"
     1.6  
     1.7 -#define VERBOSE(TEXT) if (verbose_mode) verbose(TEXT)
     1.8 -
     1.9  using namespace std;
    1.10  using namespace pEp::utility;
    1.11  
    1.12 @@ -996,7 +994,28 @@
    1.13          return E_FAIL;
    1.14      }
    1.15  
    1.16 +    if (verbose_mode) {
    1.17 +        stringstream ss;
    1.18 +        ss << "trust_personal_key called with ";
    1.19 +        ss << utf8_string(ident->address);
    1.20 +        ss << L": ";
    1.21 +        ss << ident->comm_type;
    1.22 +        verbose(ss.str());
    1.23 +    }
    1.24 +
    1.25      PEP_STATUS status = ::trust_personal_key(get_session(), _ident);
    1.26 +
    1.27 +    if (verbose_mode) {
    1.28 +        stringstream ss;
    1.29 +        ss << "result ";
    1.30 +        ss << status;
    1.31 +        ss << " for ";
    1.32 +        ss << _ident->address;
    1.33 +        ss << L": ";
    1.34 +        ss << _ident->comm_type;
    1.35 +        verbose(ss.str());
    1.36 +    }
    1.37 +
    1.38      if (status == PEP_STATUS_OK)
    1.39          copy_identity(result, _ident);
    1.40