diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2008-10-04 00:23:23 +0200 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2008-10-04 00:23:23 +0200 |
commit | 3eb6c07909584422900e42787c48874168afba4e (patch) | |
tree | 6b6065a86ec093305fd50f694b88295b0843a2d7 | |
parent | da003cfcee25fc4fb98a061893b44f0eb0f43a7c (diff) | |
download | eurephia-3eb6c07909584422900e42787c48874168afba4e.tar.gz eurephia-3eb6c07909584422900e42787c48874168afba4e.tar.xz eurephia-3eb6c07909584422900e42787c48874168afba4e.zip |
Log review - last round for now. Recategorised a few errors and warnings.
-rw-r--r-- | database/eurephiadb-driver_template.c | 4 | ||||
-rw-r--r-- | database/sqlite/eurephiadb-sqlite.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/database/eurephiadb-driver_template.c b/database/eurephiadb-driver_template.c index 9e75d33..fc67510 100644 --- a/database/eurephiadb-driver_template.c +++ b/database/eurephiadb-driver_template.c @@ -554,7 +554,7 @@ int eDBregister_login(eurephiaCTX *ctx, eurephiaSESSION *skey, const int certid, skey->sessionkey, certid, uid, proto, remipaddr, remport, vpnipaddr, vpnipmask); if( skey->sessionstatus != SESSION_NEW ) { - eurephia_log(ctx, LOG_WARNING, 5, "Not a new session, will not register it again"); + eurephia_log(ctx, LOG_ERROR, 5, "Not a new session, will not register it again"); return 1; } @@ -883,7 +883,7 @@ int eDBdestroy_session(eurephiaCTX *ctx, eurephiaSESSION *session) { DEBUG(ctx, 20, "Function call: eDBdestroy_session(ctx, '%s')", session->sessionkey); if( (session == NULL) || (session->sessionkey == NULL) ) { - eurephia_log(ctx, LOG_ERROR, 1, "No active session given to be destroyed"); + eurephia_log(ctx, LOG_WARNING, 1, "No active session given to be destroyed"); return 1; } diff --git a/database/sqlite/eurephiadb-sqlite.c b/database/sqlite/eurephiadb-sqlite.c index 03cff02..8fcbd65 100644 --- a/database/sqlite/eurephiadb-sqlite.c +++ b/database/sqlite/eurephiadb-sqlite.c @@ -105,7 +105,7 @@ int eDBconnect(eurephiaCTX *ctx, const int argc, const char **argv) DEBUG(ctx, 20, "Function call: eDBconnect(ctx, %i, '%s')", argc, argv[0]); if( (argc != 1) || (argv[0] == NULL) || (strlen(argv[0]) < 1) ) { - eurephia_log(ctx, LOG_PANIC, 0, "Wrong parameters to dblink-sqlite. Cannot open database."); + eurephia_log(ctx, LOG_PANIC, 0, "Wrong parameters to eurephiadb-sqlite. Cannot open database."); return 0; } @@ -508,7 +508,7 @@ int eDBregister_login(eurephiaCTX *ctx, eurephiaSESSION *skey, const int certid, skey->sessionkey, certid, uid, proto, remipaddr, remport, vpnipaddr, vpnipmask); if( skey->sessionstatus != SESSION_NEW ) { - eurephia_log(ctx, LOG_WARNING, 5, "Not a new session, will not register it again"); + eurephia_log(ctx, LOG_ERROR, 5, "Not a new session, will not register it again"); return 1; } @@ -825,7 +825,7 @@ int eDBdestroy_session(eurephiaCTX *ctx, eurephiaSESSION *session) { DEBUG(ctx, 20, "Function call: eDBdestroy_session(ctx, '%s')", session->sessionkey); if( (session == NULL) || (session->sessionkey == NULL) ) { - eurephia_log(ctx, LOG_ERROR, 1, "No active session given to be destroyed"); + eurephia_log(ctx, LOG_WARNING, 1, "No active session given to be destroyed"); return 1; } |