Ignore:
Timestamp:
10/12/13 14:56:55 (10 years ago)
Author:
nit
Message:

[tithek] add titheklog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/tithek/ard.h

    r24002 r24234  
    55{
    66        debug(99, "link %s", link);
     7        int debuglevel = getconfigint("debuglevel", NULL);
    78        char* ip = NULL, *pos = NULL, *path = NULL, *streamurl = NULL, *tmpstr = NULL;
    89       
     
    1819
    1920        tmpstr = gethttp(ip, path, 80, NULL, NULL, 10000, NULL, 0);
    20         if(getconfigint("debuglevel", NULL) == 99)
    21                 writesys("/tmp/ard1_tmpstr", tmpstr, 0);
     21        titheklog(debuglevel, "/tmp/ard1_tmpstr", NULL, tmpstr);
    2222
    2323//      writesys("/var/usr/local/share/titan/plugins/tithek/ard1_tmpstr", tmpstr, 0);
     
    4949        free(ip), ip = NULL;
    5050
    51         if(getconfigint("debuglevel", NULL) == 99)
    52                 writesys("/tmp/ard2_streamurl", streamurl, 0);
     51  titheklog(debuglevel, "/tmp/ard2_streamurl", NULL, streamurl);
    5352
    5453// segfault munmap_chunk(): invalid pointer
Note: See TracChangeset for help on using the changeset viewer.