Author: milinda
Date: Mon Nov 5 21:10:32 2007
New Revision: 592282
URL: http://svn.apache.org/viewvc?rev=592282&view=rev
Log:
Added minor changes to log messages
Modified:
webservices/rampart/scratch/c/trust/src/token.c
Modified: webservices/rampart/scratch/c/trust/src/token.c
URL:
http://svn.apache.org/viewvc/webservices/rampart/scratch/c/trust/src/token.c?rev=592282&r1=592281&r2=592282&view=diff
==============================================================================
--- webservices/rampart/scratch/c/trust/src/token.c (original)
+++ webservices/rampart/scratch/c/trust/src/token.c Mon Nov 5 21:10:32 2007
@@ -95,8 +95,6 @@
trust_token_t *token = NULL;
axis2_status_t status;
- AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-
token = AXIS2_MALLOC(env->allocator, sizeof(trust_token_t));
if(id)
@@ -104,7 +102,7 @@
token->id = id;
} else
{
- AXIS2_LOG_INFO(env->log, "Cannot create trust token with null
id!");
+ AXIS2_LOG_ERROsR(env->log, AXIS2_LOG_SI, "[trust] Cannot create
trust token with null id!");
return NULL;
}
@@ -113,17 +111,21 @@
token->token = token_node;
} else
{
- AXIS2_LOG_INFO(env->log, "Cannot create trust token with null
token element!");
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "[trust] Cannot create
trust token with null token element!");
return NULL;
}
if(life_node)
{
status = trust_token_process_life_elem(env, life_node, token);
+ if(status == AXIS2_FAILURE)
+ {
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "[trust] Lifetime
element processing failed.");
+ }
} else
{
- AXIS2_LOG_INFO(env->log, "Cannot create trust token with null life
element!");
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "[trust] Cannot create
trust token with null life element!");
return NULL;
}
@@ -149,7 +151,7 @@
token->id = id;
} else
{
- AXIS2_LOG_INFO(env->log, "Cannot create trust token with null
id!");
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "[trust] Cannot create
trust token with null id!");
return NULL;
}
@@ -158,7 +160,7 @@
token->token = token_node;
} else
{
- AXIS2_LOG_INFO(env->log, "Cannot create trust token with null
token element!");
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "[trust] Cannot create
trust token with null token element!");
return NULL;
}
@@ -167,7 +169,7 @@
token->created = created;
} else
{
- AXIS2_LOG_INFO(env->log, "Cannot create trust token with null
create date!");
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "[trust] Cannot create
trust token with null create date!");
return NULL;
}
@@ -176,7 +178,7 @@
token->expire = expire;
} else
{
- AXIS2_LOG_INFO(env->log, "Cannot create trust token with null
expired date!");
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "[trust] Cannot create
trust token with null expired date!");
return NULL;
}
return token;