Changeset d858d21


Ignore:
Timestamp:
2008-02-17T02:12:42Z (17 years ago)
Author:
Sven Moritz Hallberg <sm@…>
Branches:
master
Children:
59ab2af
Parents:
2ecfe39
Message:

remove debugging output

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bitlbee.c

    r2ecfe39 rd858d21  
    143143        log_link( LOGLVL_ERROR, LOGOUTPUT_IRC );
    144144        log_link( LOGLVL_WARNING, LOGOUTPUT_IRC );
    145     /* TODO: Remove debugging log_link's */
    146         log_link( LOGLVL_INFO, LOGOUTPUT_IRC );
    147         log_link( LOGLVL_DEBUG, LOGOUTPUT_IRC );
    148145       
    149146        return( 0 );
  • otr.c

    r2ecfe39 rd858d21  
    232232        int kg=0;
    233233
    234         log_message(LOGLVL_DEBUG, "otr_load '%s'", irc->nick);
    235 
    236234        g_snprintf(s, 511, "%s%s.otr_keys", global.conf->configdir, irc->nick);
    237235        e = otrl_privkey_read(irc->otr->us, s);
     
    265263        gcry_error_t e;
    266264
    267         log_message(LOGLVL_DEBUG, "otr_save '%s'", irc->nick);
    268 
    269265        g_snprintf(s, 511, "%s%s.otr_fprints", global.conf->configdir, irc->nick);
    270266        e = otrl_privkey_write_fingerprints(irc->otr->us, s);
     
    279275        char s[512];
    280276       
    281         log_message(LOGLVL_DEBUG, "otr_remove '%s'", nick);
    282 
    283277        g_snprintf(s, 511, "%s%s.otr_keys", global.conf->configdir, nick);
    284278        unlink(s);
     
    291285        char s[512], t[512];
    292286       
    293         log_message(LOGLVL_DEBUG, "otr_rename '%s' -> '%s'", onick, nnick);
    294 
    295287        g_snprintf(s, 511, "%s%s.otr_keys", global.conf->configdir, onick);
    296288        g_snprintf(t, 511, "%s%s.otr_keys", global.conf->configdir, nnick);
     
    433425        const char *p;
    434426       
    435         log_message(LOGLVL_DEBUG, "op_policy '%s' '%s'", context->accountname, context->protocol);
    436        
    437427        /* policy override during keygen: if we're missing the key for context but are currently
    438428           generating it, then that's as much as we can do. => temporarily return NEVER. */
     
    459449        struct im_connection *ic = check_imc(opdata, accountname, protocol);
    460450       
    461         log_message(LOGLVL_DEBUG, "op_create_privkey '%s' '%s'", accountname, protocol);
    462 
    463451        /* will fail silently if keygen already in progress */
    464452        otr_keygen(ic->irc, accountname, protocol);
     
    471459        user_t *u;
    472460
    473         log_message(LOGLVL_DEBUG, "op_is_logged_in '%s' '%s' '%s'", accountname, protocol, recipient);
    474        
    475461        /* lookup the user_t for the given recipient */
    476462        u = user_findhandle(ic, recipient);
     
    490476        struct im_connection *ic = check_imc(opdata, accountname, protocol);
    491477
    492         log_message(LOGLVL_DEBUG, "op_inject_message '%s' '%s' '%s' '%s'", accountname, protocol, recipient, message);
    493 
    494478        if (strcmp(accountname, recipient) == 0) {
    495479                /* huh? injecting messages to myself? */
     
    509493        char *msg = g_strdup(message);
    510494
    511         log_message(LOGLVL_DEBUG, "op_display_otr_message '%s' '%s' '%s' '%s'", accountname, protocol, username, message);
    512 
    513495        strip_html(msg);
    514496        irc_usermsg(ic->irc, "otr: %s", msg);
     
    526508       
    527509        otrl_privkey_hash_to_human(hunam, fingerprint);
    528         log_message(LOGLVL_DEBUG, "op_new_fingerprint '%s' '%s' '%s' '%s'", accountname, protocol, username, hunam);
    529 
    530510        irc_usermsg(ic->irc, "new fingerprint for %s: %s",
    531511                peernick(ic->irc, username, protocol), hunam);
     
    535515{
    536516        struct im_connection *ic = (struct im_connection *)opdata;
    537 
    538         log_message(LOGLVL_DEBUG, "op_write_fingerprints");
    539517
    540518        otr_save(ic->irc);
     
    547525        user_t *u;
    548526        const char *trust;
    549 
    550         log_message(LOGLVL_DEBUG, "op_gone_secure '%s' '%s' '%s'", context->accountname, context->protocol, context->username);
    551527
    552528        u = peeruser(ic->irc, context->username, context->protocol);
     
    573549        user_t *u;
    574550
    575         log_message(LOGLVL_DEBUG, "op_gone_insecure '%s' '%s' '%s'", context->accountname, context->protocol, context->username);
    576 
    577551        u = peeruser(ic->irc, context->username, context->protocol);
    578552        if(!u) {
     
    592566                check_imc(opdata, context->accountname, context->protocol);
    593567        user_t *u;
    594 
    595         log_message(LOGLVL_DEBUG, "op_still_secure '%s' '%s' '%s' is_reply=%d",
    596                 context->accountname, context->protocol, context->username, is_reply);
    597568
    598569        u = peeruser(ic->irc, context->username, context->protocol);
     
    632603        struct im_connection *ic = (struct im_connection *)opdata;
    633604
    634         log_message(LOGLVL_DEBUG, "op_account_name '%s' '%s'", account, protocol);
    635        
    636605        return peernick(ic->irc, account, protocol);
    637606}
     
    11311100        user_t *u;
    11321101       
    1133         log_message(LOGLVL_DEBUG, "peeruser '%s' '%s'", handle, protocol);
    1134        
    11351102        for(u=irc->users; u; u=u->next) {
    11361103                struct prpl *prpl;
     
    12951262        }
    12961263        *p = '\0';
    1297         log_message(LOGLVL_DEBUG, "match_fingerprint '%s'", prefix);
    1298         log_message(LOGLVL_DEBUG, "n=%d strlen(prefix)=%d", n, strlen(prefix));
    12991264       
    13001265        /* find first fingerprint with the given prefix */
     
    13611326        }
    13621327        *p = '\0';
    1363         log_message(LOGLVL_DEBUG, "match_privkey '%s'", prefix);
    1364         log_message(LOGLVL_DEBUG, "n=%d strlen(prefix)=%d", n, strlen(prefix));
    13651328       
    13661329        /* find first key which matches the given prefix */
     
    15041467        kg_t *kg;
    15051468       
    1506         log_message(LOGLVL_DEBUG, "keygen_in_progress '%s' '%s'", handle, protocol);
    1507        
    15081469        if(!irc->otr->sent_accountname || !irc->otr->sent_protocol)
    15091470                return 0;
     
    15741535        if(irc->otr->sent_accountname) {
    15751536                /* enqueue our job for later transmission */
    1576                 log_message(LOGLVL_DEBUG, "enqueueing keygen for %s/%s", handle, protocol);
    15771537                kg_t **kg = &irc->otr->todo;
    15781538                while(*kg)
     
    15831543        } else {
    15841544                /* send our job over and remember it */
    1585                 log_message(LOGLVL_DEBUG, "slave: generate for %s/%s!", handle, protocol);
    15861545                fprintf(irc->otr->to, "%s\n%s\n", handle, protocol);
    15871546                fflush(irc->otr->to);
     
    16371596        char filename[512], msg[512];
    16381597
    1639         log_message(LOGLVL_DEBUG, "keygen_finish_handler cond=%d", cond);
    1640 
    16411598        myfgets(filename, 512, irc->otr->from);
    16421599        myfgets(msg, 512, irc->otr->from);
    1643        
    1644         log_message(LOGLVL_DEBUG, "filename='%s'", filename);
    1645         log_message(LOGLVL_DEBUG, "msg='%s'", msg);
    16461600       
    16471601        irc_usermsg(irc, "%s", msg);
     
    16671621                kg_t *p = irc->otr->todo;
    16681622                /* send the next one over */
    1669                 log_message(LOGLVL_DEBUG, "slave: keygen for %s/%s!", p->accountname, p->protocol);
    16701623                fprintf(irc->otr->to, "%s\n%s\n", p->accountname, p->protocol);
    16711624                fflush(irc->otr->to);
     
    16771630        } else {
    16781631                /* okay, the slave is idle now, so kill him */
    1679                 log_message(LOGLVL_DEBUG, "all keys done. die, slave!");
    16801632                fclose(irc->otr->from);
    16811633                fclose(irc->otr->to);
     
    16921644        int n;
    16931645        char buf[1024];
    1694        
    1695         log_message(LOGLVL_DEBUG, "copyfile '%s' '%s'", a, b);
    16961646       
    16971647        fda = open(a, O_RDONLY);
Note: See TracChangeset for help on using the changeset viewer.