Browse Source

Allow logging of completed events to syslog

master
Dirk Engling 12 years ago
parent
commit
a3aacfd6a6
  1. 3
      Makefile
  2. 4
      trackerlogic.c

3
Makefile

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.65 2009/10/15 18:23:20 erdgeist Exp $
# $Id: Makefile,v 1.66 2009/11/12 10:18:27 erdgeist Exp $
CC?=gcc
@ -35,6 +35,7 @@ BINDIR?=$(PREFIX)/bin
#FEATURES+=-DWANT_LOG_NUMWANT
#FEATURES+=-DWANT_MODEST_FULLSCRAPES
#FEATURES+=-DWANT_SPOT_WOODPECKER
#FEATURES+=-DWANT_SYSLOGS
FEATURES+=-DWANT_FULLSCRAPE
#FEATURES+=-D_DEBUG_HTTPERROR

4
trackerlogic.c

@ -138,7 +138,7 @@ size_t add_peer_to_torrent_and_return_peers( ot_hash hash, ot_peer *peer, PROTO_
torrent->peer_list->peer_count++;
if( OT_PEERFLAG(peer) & PEER_FLAG_COMPLETED ) {
torrent->peer_list->down_count++;
stats_issue_event( EVENT_COMPLETED, 0, 0 );
stats_issue_event( EVENT_COMPLETED, 0, (uintptr_t)torrent->hash );
}
if( OT_PEERFLAG(peer) & PEER_FLAG_SEEDING )
torrent->peer_list->seed_count++;
@ -457,4 +457,4 @@ void trackerlogic_deinit( void ) {
mutex_deinit( );
}
const char *g_version_trackerlogic_c = "$Source: /home/cvsroot/opentracker/trackerlogic.c,v $: $Revision: 1.134 $\n";
const char *g_version_trackerlogic_c = "$Source: /home/cvsroot/opentracker/trackerlogic.c,v $: $Revision: 1.135 $\n";
Loading…
Cancel
Save