|
|
@ -150,7 +150,7 @@ func (s IcsService) getMonth2Int(mon time.Month) int {
|
|
|
|
/////////////////////////////
|
|
|
|
/////////////////////////////
|
|
|
|
func (s IcsService) LogWatcher() *icserror.IcsError {
|
|
|
|
func (s IcsService) LogWatcher() *icserror.IcsError {
|
|
|
|
l := icslog.GetIcsLog()
|
|
|
|
l := icslog.GetIcsLog()
|
|
|
|
l.Print(icslog.LOG_LEVEL_INFO, -1, "Log Watcher Start")
|
|
|
|
// l.Print(icslog.LOG_LEVEL_INFO, -1, "Log Watcher Start")
|
|
|
|
|
|
|
|
|
|
|
|
for !s.GetExit() {
|
|
|
|
for !s.GetExit() {
|
|
|
|
for s.GetStop() {
|
|
|
|
for s.GetStop() {
|
|
|
@ -215,7 +215,7 @@ func (s IcsService) LogWatcher() *icserror.IcsError {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
s.log.M.Unlock()
|
|
|
|
s.log.M.Unlock()
|
|
|
|
l.Printf(icslog.LOG_LEVEL_INFO, -1, "Log Watcher: Updated Log File - %s", s.log.LogFileName)
|
|
|
|
// l.Printf(icslog.LOG_LEVEL_INFO, -1, "Log Watcher: Updated Log File - %s", s.log.LogFileName)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//l.Printf(icslog.LOG_LEVEL_INFO, -1, "Log Watcher")
|
|
|
|
//l.Printf(icslog.LOG_LEVEL_INFO, -1, "Log Watcher")
|
|
|
|