summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2017-08-30 20:50:56 +0200
committerJohnny Willemsen <jwillemsen@remedy.nl>2017-08-30 20:52:00 +0200
commitff78e6235f5103312bef1de2b30798a707f8817b (patch)
tree3de707e02b1bc518ccf96133a2367ca5ee0fe19e
parente7309a1c32ff422701b5cbc1e6e7f979701236b0 (diff)
downloadATCD-ff78e6235f5103312bef1de2b30798a707f8817b.tar.gz
Make logging format the same as TAO messages and fixed some unicode logging issues
* TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Factory.cpp:
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Factory.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Factory.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Factory.cpp
index 5a8dad4fe44..6bcdeda0b88 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Factory.cpp
@@ -161,8 +161,8 @@ TAO::SSLIOP::Protocol_Factory::pem_passwd_cb (char *buf, int size, int , void *t
{
if (TAO_debug_level > 0)
ORBSVCS_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) SSLIOP_Factory::pem_passwd_cb ")
- ACE_TEXT ("cannot open file: %s\n"),
+ ACE_TEXT ("TAO (%P|%t) - SSLIOP_Factory::pem_passwd_cb ")
+ ACE_TEXT ("cannot open file: %C\n"),
fname));
pem_passwd_ = "";
}
@@ -179,8 +179,8 @@ TAO::SSLIOP::Protocol_Factory::pem_passwd_cb (char *buf, int size, int , void *t
{
if (TAO_debug_level > 0)
ORBSVCS_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) SSLIOP_Factory::pem_passwd_cb ")
- ACE_TEXT ("cannot read file: %s\n"),
+ ACE_TEXT ("TAO (%P|%t) - SSLIOP_Factory::pem_passwd_cb ")
+ ACE_TEXT ("cannot read file: %C\n"),
fname));
pem_passwd_ = "";
}
@@ -202,8 +202,8 @@ TAO::SSLIOP::Protocol_Factory::pem_passwd_cb (char *buf, int size, int , void *t
{
if (TAO_debug_level > 0)
ORBSVCS_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) SSLIOP_Factory::pem_passwd_cb ")
- ACE_TEXT ("invalid env: %s\n"),
+ ACE_TEXT ("TAO (%P|%t) - SSLIOP_Factory::pem_passwd_cb ")
+ ACE_TEXT ("invalid env: %C\n"),
env));
pem_passwd_ = "";
}
@@ -214,7 +214,7 @@ TAO::SSLIOP::Protocol_Factory::pem_passwd_cb (char *buf, int size, int , void *t
{
if (TAO_debug_level > 0)
ORBSVCS_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) SSLIOP_Factory::pem_passwd_cb truncating ")
+ ACE_TEXT ("TAO (%P|%t) - SSLIOP_Factory::pem_passwd_cb truncating ")
ACE_TEXT ("supplied password from len %d to %d\n"),
len, size - 1));
len = size - 1;
@@ -343,7 +343,7 @@ TAO::SSLIOP::Protocol_Factory::init (int argc, ACE_TCHAR* argv[])
{
if (TAO_debug_level > 0)
ORBSVCS_ERROR ((LM_ERROR,
- ACE_TEXT ("TAO (%P|%t) Unable to set the session id ")
+ ACE_TEXT ("TAO (%P|%t) - Unable to set the session id ")
ACE_TEXT ("context to \'%C\'\n"), session_id_context_));
return -1;
@@ -373,7 +373,7 @@ TAO::SSLIOP::Protocol_Factory::init (int argc, ACE_TCHAR* argv[])
"ALL:eNULL") == 0)
{
ORBSVCS_DEBUG ((LM_ERROR,
- ACE_TEXT ("TAO (%P|%t) Unable to set eNULL ")
+ ACE_TEXT ("TAO (%P|%t) - Unable to set eNULL ")
ACE_TEXT ("SSL cipher in SSLIOP ")
ACE_TEXT ("factory.\n")));
@@ -515,7 +515,7 @@ TAO::SSLIOP::Protocol_Factory::init (int argc, ACE_TCHAR* argv[])
ACE_TEXT_ALWAYS_CHAR(argv[curarg])) == 0)
{
ORBSVCS_DEBUG ((LM_ERROR,
- ACE_TEXT ("TAO (%P|%t) Unable to set cipher ")
+ ACE_TEXT ("TAO (%P|%t) - Unable to set cipher ")
ACE_TEXT ("list in SSLIOP ")
ACE_TEXT ("factory.\n")));
@@ -570,14 +570,14 @@ TAO::SSLIOP::Protocol_Factory::init (int argc, ACE_TCHAR* argv[])
{
++errors;
ORBSVCS_ERROR ((LM_ERROR,
- ACE_TEXT ("TAO (%P|%t) Failed to load ")
+ ACE_TEXT ("TAO (%P|%t) - Failed to load ")
ACE_TEXT ("more entropy from <%s>: %m\n"), path));
}
else
{
if (TAO_debug_level > 0)
ORBSVCS_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) Loaded ")
+ ACE_TEXT ("TAO (%P|%t) - Loaded ")
ACE_TEXT ("more entropy from <%s>\n"), path));
}
@@ -595,7 +595,7 @@ TAO::SSLIOP::Protocol_Factory::init (int argc, ACE_TCHAR* argv[])
if (ssl_ctx->load_trusted_ca (ca_file.in (), ca_dir.in ()) != 0)
{
ORBSVCS_ERROR ((LM_ERROR,
- ACE_TEXT ("TAO (%P|%t) Unable to load ")
+ ACE_TEXT ("TAO (%P|%t) - Unable to load ")
ACE_TEXT ("CA certs from %C%C%C\n"),
((ca_file.in () != 0) ? ca_file.in () : "a file pointed to by "
ACE_SSL_CERT_FILE_ENV
@@ -612,7 +612,7 @@ TAO::SSLIOP::Protocol_Factory::init (int argc, ACE_TCHAR* argv[])
{
if (TAO_debug_level > 0)
ORBSVCS_DEBUG ((LM_INFO,
- ACE_TEXT ("TAO (%P|%t) SSLIOP loaded ")
+ ACE_TEXT ("TAO (%P|%t) - SSLIOP loaded ")
ACE_TEXT ("Trusted Certificates from %C%C%C\n"),
((ca_file.in () != 0) ? ca_file.in () : "a file pointed to by "
ACE_SSL_CERT_FILE_ENV
@@ -649,7 +649,7 @@ TAO::SSLIOP::Protocol_Factory::init (int argc, ACE_TCHAR* argv[])
// a dh parameter file and we were unable to actually find it
// and load from it.
ORBSVCS_ERROR ((LM_ERROR,
- ACE_TEXT ("(%P|%t) SSLIOP_Factory: ")
+ ACE_TEXT ("(%P|%t) - SSLIOP_Factory: ")
ACE_TEXT ("unable to set ")
ACE_TEXT ("DH parameters <%C>\n"),
dhparams_path.in () ));
@@ -659,7 +659,7 @@ TAO::SSLIOP::Protocol_Factory::init (int argc, ACE_TCHAR* argv[])
{
if (TAO_debug_level > 0)
ORBSVCS_DEBUG ((LM_INFO,
- ACE_TEXT ("(%P|%t) SSLIOP_Factory: ")
+ ACE_TEXT ("(%P|%t) - SSLIOP_Factory: ")
ACE_TEXT ("No DH parameters found in ")
ACE_TEXT ("certificate <%C>; either none ")
ACE_TEXT ("are needed (RSA) or problems ")
@@ -671,7 +671,7 @@ TAO::SSLIOP::Protocol_Factory::init (int argc, ACE_TCHAR* argv[])
{
if (TAO_debug_level > 0)
ORBSVCS_DEBUG ((LM_INFO,
- ACE_TEXT ("(%P|%t) SSLIOP loaded ")
+ ACE_TEXT ("(%P|%t) - SSLIOP loaded ")
ACE_TEXT ("Diffie-Hellman params ")
ACE_TEXT ("from %C\n"),
dhparams_path.in ()));
@@ -688,7 +688,7 @@ TAO::SSLIOP::Protocol_Factory::init (int argc, ACE_TCHAR* argv[])
certificate_type) != 0)
{
ORBSVCS_ERROR ((LM_ERROR,
- ACE_TEXT ("TAO (%P|%t) Unable to set ")
+ ACE_TEXT ("TAO (%P|%t) - Unable to set ")
ACE_TEXT ("SSL certificate <%C> ")
ACE_TEXT ("in SSLIOP factory.\n"),
certificate_path.in()));
@@ -699,7 +699,7 @@ TAO::SSLIOP::Protocol_Factory::init (int argc, ACE_TCHAR* argv[])
{
if (TAO_debug_level > 0)
ORBSVCS_DEBUG ((LM_INFO,
- ACE_TEXT ("TAO (%P|%t) SSLIOP loaded ")
+ ACE_TEXT ("TAO (%P|%t) - SSLIOP loaded ")
ACE_TEXT ("SSL certificate ")
ACE_TEXT ("from %C\n"),
certificate_path.in()));
@@ -712,7 +712,7 @@ TAO::SSLIOP::Protocol_Factory::init (int argc, ACE_TCHAR* argv[])
{
ORBSVCS_ERROR ((LM_ERROR,
- ACE_TEXT ("TAO (%P|%t) Unable to set ")
+ ACE_TEXT ("TAO (%P|%t) - Unable to set ")
ACE_TEXT ("SSL private key ")
ACE_TEXT ("<%C> in SSLIOP factory.\n"),
private_key_path.in ()));
@@ -723,7 +723,7 @@ TAO::SSLIOP::Protocol_Factory::init (int argc, ACE_TCHAR* argv[])
{
if (TAO_debug_level > 0)
ORBSVCS_DEBUG ((LM_INFO,
- ACE_TEXT ("TAO (%P|%t) SSLIOP loaded ")
+ ACE_TEXT ("TAO (%P|%t) - SSLIOP loaded ")
ACE_TEXT ("Private Key ")
ACE_TEXT ("from <%C>\n"),
private_key_path.in ()));