Changeset 175


Ignore:
Timestamp:
07/27/05 14:20:24 (19 years ago)
Author:
bastiaans
Message:

daemon/togad.py:

  • Fixed thread exception handling
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/togad.py

    r170 r175  
    761761                                        xml_thread = threading.Thread( None, self.processXML, 'xml_thread' )
    762762                                        xml_thread.start()
    763                                 except threading.error, msg:
     763                                except error, msg:
    764764                                        debug_msg( 0, 'ERROR: Unable to start xml_thread!: '+str(msg))
    765765                                        #return 1
     
    773773                                        store_thread = threading.Thread( None, self.storeMetrics, 'store_thread' )
    774774                                        store_thread.start()
    775                                 except threading.error, msg:
     775                                except error, msg:
    776776                                        debug_msg( 0, 'ERROR: Unable to start store_thread!: '+str(msg))
    777777                                        #return 1
     
    790790                        store_metric_thread = threading.Thread( None, self.storeThread, 'store_metric_thread' )
    791791                        store_metric_thread.start()
    792                 except threading.error, msg:
     792                except error, msg:
    793793                        debug_msg( 0, 'ERROR: Unable to start ganglia_store_thread()!: '+str(msg) )
    794794                        return 1
     
    827827                        parsethread = threading.Thread( None, self.parseThread, 'parsethread' )
    828828                        parsethread.start()
    829                 except threading.error, msg:
     829                except error, msg:
    830830                        debug_msg( 0, 'ERROR: Unable to start ganglia_xml_thread()!: ' + str(msg) )
    831831                        return 1
     
    13531353                ganglia_xml_thread.start()
    13541354               
    1355         except threading.error, msg:
     1355        except error, msg:
    13561356                debug_msg( 0, 'FATAL ERROR: Unable to start main threads!: '+ str(msg) )
    13571357                syslog.closelog()
Note: See TracChangeset for help on using the changeset viewer.