View | Details | Raw Unified | Return to bug 5543
Collapse All | Expand All

(-)doc/external/configuration.xml (-2 / +2 lines)
Lines 1517-1523 Link Here
1517
              <varname>logging</varname>
1517
              <varname>logging</varname>
1518
              folder. To turn off logging to file, set the parameter
1518
              folder. To turn off logging to file, set the parameter
1519
              <varname>log_to_file</varname>
1519
              <varname>log_to_file</varname>
1520
              to 0. Note that the log file will still be created. If abnormal
1520
              to false. Note that the log file will still be created. If abnormal
1521
              situations occur because of programming errors, data may appear
1521
              situations occur because of programming errors, data may appear
1522
              in the file.
1522
              in the file.
1523
            </para>
1523
            </para>
Lines 1541-1547 Link Here
1541
              <varname>log_to_syslog</varname>
1541
              <varname>log_to_syslog</varname>
1542
              under the
1542
              under the
1543
              <varname>logging</varname>
1543
              <varname>logging</varname>
1544
              folder to 1, logs will be written to syslog. Specify the syslog
1544
              folder to true, logs will be written to syslog. Specify the syslog
1545
              facility in the parameter
1545
              facility in the parameter
1546
              <varname>syslog_facility</varname>
1546
              <varname>syslog_facility</varname>
1547
              . The default behaviour is not to log to syslog.
1547
              . The default behaviour is not to log to syslog.
(-)printer/modules/thinlinc/tlprinter.py (-3 / +3 lines)
Lines 375-381 Link Here
375
375
376
    for location in hive.get_folders("/printing/nearest/locations"):
376
    for location in hive.get_folders("/printing/nearest/locations"):
377
        location2printer[location] = hive.get_string_list("/printing/nearest/locations/%s/printers" % location, [])
377
        location2printer[location] = hive.get_string_list("/printing/nearest/locations/%s/printers" % location, [])
378
        if hive.get_bool("/printing/nearest/locations/%s/useforunknown" % location, 0):
378
        if hive.get_bool("/printing/nearest/locations/%s/useforunknown" % location, False):
379
            hw2printers["unknown"] += hive.get_string_list("/printing/nearest/locations/%s/printers" % location, [])
379
            hw2printers["unknown"] += hive.get_string_list("/printing/nearest/locations/%s/printers" % location, [])
380
380
381
    for printer in get_current_printerlist(username=None):
381
    for printer in get_current_printerlist(username=None):
Lines 457-463 Link Here
457
            # We store the usernames for all sessions with an hardware
457
            # We store the usernames for all sessions with an hardware
458
            # address that is unknown to the printer database under the key
458
            # address that is unknown to the printer database under the key
459
            # 'unknown'. It is later used to construct the list of printers
459
            # 'unknown'. It is later used to construct the list of printers
460
            # based on locations that has the useforunknown=1 setting.
460
            # based on locations that has the useforunknown=true setting.
461
            if not hw2printer.has_key(hwaddr):
461
            if not hw2printer.has_key(hwaddr):
462
                hwaddr = "unknown"
462
                hwaddr = "unknown"
463
463
Lines 539-545 Link Here
539
    #
539
    #
540
    # Hardware address might be 'unknown'. There is an entry for that
540
    # Hardware address might be 'unknown'. There is an entry for that
541
    # as well in hw2printer, including any printers that are listed in
541
    # as well in hw2printer, including any printers that are listed in
542
    # locations that have useforunknown=1
542
    # locations that have useforunknown=true
543
    allowed_printers = {}
543
    allowed_printers = {}
544
    for hwaddr in hwaddrs:
544
    for hwaddr in hwaddrs:
545
        for printer in hw2printer[hwaddr]:
545
        for printer in hw2printer[hwaddr]:
(-)vsm/vsmagent.hconf (-3 / +3 lines)
Lines 36-42 Link Here
36
default_geometry=1024 768
36
default_geometry=1024 768
37
37
38
# Save password for future logins?
38
# Save password for future logins?
39
single_signon=1
39
single_signon=true
40
40
41
# Extra arguments to pass to the Xserver Xvnc, for example:
41
# Extra arguments to pass to the Xserver Xvnc, for example:
42
# xserver_args=-MaxIdleTime 60
42
# xserver_args=-MaxIdleTime 60
Lines 81-90 Link Here
81
LD_LIBRARY_PATH=/opt/thinlinc/lib64:/opt/thinlinc/lib
86
LD_LIBRARY_PATH=/opt/thinlinc/lib64:/opt/thinlinc/lib
82
87
83
[/vsmagent/logging]
88
[/vsmagent/logging]
84
log_to_file=1
89
log_to_file=true
85
logfile=/var/log/vsmagent.log
90
logfile=/var/log/vsmagent.log
86
91
87
log_to_syslog=0
92
log_to_syslog=false
88
syslog_facility=local0
93
syslog_facility=local0
89
syslog_socket=/dev/log
94
syslog_socket=/dev/log
90
syslog_host=
95
syslog_host=
(-)vsm/modules/thinlinc/vsm/loginhandler_common.py (-1 / +1 lines)
Lines 51-57 Link Here
51
        raise NotImplementedError
51
        raise NotImplementedError
52
52
53
    def unbind_ports(self):
53
    def unbind_ports(self):
54
        if self.parent.hive.get_bool("/vsmserver/unbind_ports_at_login", 1):
54
        if self.parent.hive.get_bool("/vsmserver/unbind_ports_at_login", True):
55
            agenthost = self.sessinfo['agenthost']
55
            agenthost = self.sessinfo['agenthost']
56
            display = self.sessinfo['display']
56
            display = self.sessinfo['display']
57
            url = self.agenturl(agenthost)
57
            url = self.agenturl(agenthost)
(-)vsm/modules/thinlinc/tllogger.py (-2 / +2 lines)
Lines 54-61 Link Here
54
        logging.addLevelName(DEBUG-1, "DEBUG2")
54
        logging.addLevelName(DEBUG-1, "DEBUG2")
55
        logging.addLevelName(DEBUG-2, "DEBUG3")
55
        logging.addLevelName(DEBUG-2, "DEBUG3")
56
56
57
        self.log_to_file = self.get_bool("log_to_file", 1)
57
        self.log_to_file = self.get_bool("log_to_file", True)
58
        self.log_to_syslog = self.get_bool("log_to_syslog", 0)
58
        self.log_to_syslog = self.get_bool("log_to_syslog", False)
59
59
60
        # Set up file or stream logger.
60
        # Set up file or stream logger.
61
        if self.log_to_file:
61
        if self.log_to_file:
(-)vsm/vsmserver.hconf (-2 / +2 lines)
Lines 71-80 Link Here
71
nodes=
71
nodes=
72
72
73
[/vsmserver/logging]
73
[/vsmserver/logging]
74
log_to_file=1
74
log_to_file=true
75
logfile=/var/log/vsmserver.log
75
logfile=/var/log/vsmserver.log
76
76
77
log_to_syslog=0
77
log_to_syslog=false
78
syslog_facility=local0
78
syslog_facility=local0
79
syslog_socket=/dev/log
79
syslog_socket=/dev/log
80
syslog_host=
80
syslog_host=
(-)autotests/license_system/logger.hconf (-2 / +2 lines)
Lines 1-8 Link Here
1
[/autotests/logging]
1
[/autotests/logging]
2
log_to_file=1
2
log_to_file=true
3
logfile=tmp/logfile
3
logfile=tmp/logfile
4
4
5
log_to_syslog=0
5
log_to_syslog=false
6
syslog_facility=local0
6
syslog_facility=local0
7
syslog_socket=/dev/log
7
syslog_socket=/dev/log
8
syslog_host=
8
syslog_host=
(-)tladm/tlwebadm/tlwebadm.hconf (-2 / +2 lines)
Lines 25-34 Link Here
25
gnutls_priority=NORMAL:-VERS-SSL3.0
25
gnutls_priority=NORMAL:-VERS-SSL3.0
26
26
27
[/tlwebadm/logging]
27
[/tlwebadm/logging]
28
log_to_file=1
28
log_to_file=true
29
logfile=/var/log/tlwebadm.log
29
logfile=/var/log/tlwebadm.log
30
30
31
log_to_syslog=0
31
log_to_syslog=false
32
syslog_facility=local0
32
syslog_facility=local0
33
syslog_socket=/dev/log
33
syslog_socket=/dev/log
34
syslog_host=
34
syslog_host=
(-)webaccess/webaccess.hconf (-2 / +2 lines)
Lines 22-31 Link Here
22
gnutls_priority=NORMAL:-VERS-SSL3.0
22
gnutls_priority=NORMAL:-VERS-SSL3.0
23
23
24
[/webaccess/logging]
24
[/webaccess/logging]
25
log_to_file=1
25
log_to_file=true
26
logfile=/var/log/tlwebaccess.log
26
logfile=/var/log/tlwebaccess.log
27
27
28
log_to_syslog=0
28
log_to_syslog=false
29
syslog_facility=local0
29
syslog_facility=local0
30
syslog_socket=/dev/log
30
syslog_socket=/dev/log
31
syslog_host=
31
syslog_host=

Return to bug 5543