MCPcopy Create free account
hub / github.com/3proxy/3proxy / logstdout

Function logstdout

src/common.c:628–639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

626unsigned char tmpbuf[8192];
627
628void logstdout(struct clientparam * param, const unsigned char *s) {
629 FILE *log;
630
631 pthread_mutex_lock(&log_mutex);
632 log = param->srv->stdlog?param->srv->stdlog:conf.stdlog?conf.stdlog:stdout;
633 dobuf(param, tmpbuf, s, NULL);
634 if(!param->nolog)if(fprintf(log, "%s\n", tmpbuf) < 0) {
635 perror("printf()");
636 };
637 if(log != conf.stdlog)fflush(log);
638 pthread_mutex_unlock(&log_mutex);
639}
640#ifndef _WIN32
641void logsyslog(struct clientparam * param, const unsigned char *s) {
642

Callers

nothing calls this directly

Calls 1

dobufFunction · 0.85

Tested by

no test coverage detected