Changeset 1447


Ignore:
Timestamp:
23/08/06 13:54:09 (13 years ago)
Author:
spascoe
Message:

Bug fix for logging callback.

Logging doesn't work properly because the logger heirarchy doesn't
survive fork().

Location:
TI05-delivery/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/trunk/examples/deliveryd.py

    r1444 r1447  
    1717 
    1818import logging 
    19 logging.basicConfig(level=logging.DEBUG) 
     19logging.basicConfig(level=logging.DEBUG, filename='./bbftpd.log') 
    2020 
    2121import ndg.delivery.server.pybbftp as server 
     
    7474''' 
    7575 
    76 # Assuming logging 
    77 sys.exit(0) 
    78  
    7976logfile = './bbftpd.log' 
    8077n = len(open(logfile).readlines()) 
  • TI05-delivery/trunk/src/bbftp-server-3.2.0/includes/ndg.h

    r1444 r1447  
    1212#include <bbftpd.h> 
    1313#include <netinet/in.h> 
     14#include <stdarg.h> 
    1415 
    1516/* The logmessage size limit is hard coded into the bbFTP source.  I define a macro here to avoid 
Note: See TracChangeset for help on using the changeset viewer.