You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/09/03 22:18:51 UTC
[jira] [Commented] (TS-407) traffic_server not using
proxy.config.syslog_facility
[ https://issues.apache.org/jira/browse/TS-407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14120371#comment-14120371 ]
ASF subversion and git services commented on TS-407:
----------------------------------------------------
Commit ae56b904c69a0f2ec9ad9df447fad840dca5ff6c in trafficserver's branch refs/heads/master from [~zwoop]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=ae56b90 ]
TS-407 Cleanup the syslog facility setup for traffic_server
> traffic_server not using proxy.config.syslog_facility
> -----------------------------------------------------
>
> Key: TS-407
> URL: https://issues.apache.org/jira/browse/TS-407
> Project: Traffic Server
> Issue Type: Bug
> Components: Core
> Reporter: Leif Hedstrom
> Assignee: Leif Hedstrom
> Fix For: 5.2.0
>
>
> We have this code in Main.cc:
> static int syslog_facility = LOG_DAEMON;
> // static void syslog_log_configure()
> //
> // Reads the syslog configuration variable
> // and sets the global integer for the
> // facility and calls open log with the
> // new facility
> //
> static void
> syslog_log_configure()
> {
> char *facility_str = NULL;
> int facility;
> TS_ReadConfigStringAlloc(facility_str, "proxy.config.syslog_facility");
> if (facility_str == NULL || (facility = facility_string_to_int(facility_str)) < 0) {
> syslog(LOG_WARNING, "Bad or missing syslog facility. " "Defaulting to LOG_DAEMON");
> } else {
> syslog_facility = facility;
> closelog();
> openlog("traffic_server", LOG_PID | LOG_NDELAY | LOG_NOWAIT, facility);
> }
> }
> But as far as I can tell, we never use syslog_facility.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)