Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Remove request log in unit services #299

Merged
merged 1 commit into from
May 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions service/fanart/bilibili/bilibili.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,6 @@ func ReqRunningJob(client pilot.PilotServiceClient) {
Bili := &checkBlJob{}

for {
log.WithFields(log.Fields{
"Running": false,
"UUID": ServiceUUID,
}).Info("request for running job")

res, err := client.RequestRunJobsOfService(context.Background(), &pilot.ServiceMessage{
Service: ServiceName,
Message: "Request",
Expand Down Expand Up @@ -132,6 +127,11 @@ func ReqRunningJob(client pilot.PilotServiceClient) {
"Running": false,
"UUID": ServiceUUID,
}).Info("reporting job was done")
} else {
log.WithFields(log.Fields{
"Running": false,
"UUID": ServiceUUID,
}).Info(res.Message)
}
time.Sleep(1 * time.Minute)
}
Expand Down
10 changes: 5 additions & 5 deletions service/fanart/pixiv/pixiv.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,11 +405,6 @@ func ReqRunningJob(client pilot.PilotServiceClient) {
Pix := &checkPxJob{}

for {
log.WithFields(log.Fields{
"Running": false,
"UUID": ServiceUUID,
}).Info("request for running job")

res, err := client.RequestRunJobsOfService(context.Background(), &pilot.ServiceMessage{
Service: ServiceName,
Message: "Request",
Expand Down Expand Up @@ -443,6 +438,11 @@ func ReqRunningJob(client pilot.PilotServiceClient) {
"Running": false,
"UUID": ServiceUUID,
}).Info("reporting job was done")
} else {
log.WithFields(log.Fields{
"Running": false,
"UUID": ServiceUUID,
}).Info(res.Message)
}
time.Sleep(1 * time.Minute)
}
Expand Down
5 changes: 0 additions & 5 deletions service/fanart/twitter/twitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,6 @@ func ReqRunningJob(client pilot.PilotServiceClient) {
Twit := &checkTwJob{}

for {
log.WithFields(log.Fields{
"Service": ServiceName,
"Running": false,
"UUID": ServiceUUID,
}).Info("request for running job")

res, err := client.RequestRunJobsOfService(context.Background(), &pilot.ServiceMessage{
Service: ServiceName,
Expand Down
9 changes: 5 additions & 4 deletions service/livestream/bilibili/live/live.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ func ReqRunningJob(client pilot.PilotServiceClient) {
Bili := &checkBlLiveeJob{}

for {
log.WithFields(log.Fields{
"Running": false,
"UUID": ServiceUUID,
}).Info("request for running job")

res, err := client.RequestRunJobsOfService(context.Background(), &pilot.ServiceMessage{
Service: ServiceName,
Expand Down Expand Up @@ -115,6 +111,11 @@ func ReqRunningJob(client pilot.PilotServiceClient) {
"UUID": ServiceUUID,
}).Info("reporting job was done")

} else {
log.WithFields(log.Fields{
"Running": false,
"UUID": ServiceUUID,
}).Info(res.Message)
}

time.Sleep(1 * time.Minute)
Expand Down
9 changes: 5 additions & 4 deletions service/livestream/bilibili/space/space.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,6 @@ func ReqRunningJob(client pilot.PilotServiceClient) {
}

for {
log.WithFields(log.Fields{
"Running": false,
"UUID": ServiceUUID,
}).Info("request for running job")

res, err := client.RequestRunJobsOfService(context.Background(), &pilot.ServiceMessage{
Service: ServiceName,
Expand Down Expand Up @@ -140,6 +136,11 @@ func ReqRunningJob(client pilot.PilotServiceClient) {
"UUID": ServiceUUID,
}).Info("reporting job was done")

} else {
log.WithFields(log.Fields{
"Running": false,
"UUID": ServiceUUID,
}).Info(res.Message)
}

time.Sleep(1 * time.Minute)
Expand Down
10 changes: 5 additions & 5 deletions service/livestream/twitch/twitch.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,6 @@ func ReqRunningJob(client pilot.PilotServiceClient) {
Twitch := &checkTwcJob{}

for {
log.WithFields(log.Fields{
"Running": false,
"UUID": ServiceUUID,
}).Info("request for running job")

res, err := client.RequestRunJobsOfService(context.Background(), &pilot.ServiceMessage{
Service: ServiceName,
Message: "Request",
Expand Down Expand Up @@ -129,6 +124,11 @@ func ReqRunningJob(client pilot.PilotServiceClient) {
"Running": false,
"UUID": ServiceUUID,
}).Info("reporting job was done")
} else {
log.WithFields(log.Fields{
"Running": false,
"UUID": ServiceUUID,
}).Info(res.Message)
}
time.Sleep(1 * time.Minute)
}
Expand Down
6 changes: 0 additions & 6 deletions service/livestream/youtube/checker/youtube.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,6 @@ func ReqRunningJob(client pilot.PilotServiceClient) {
}

res := func() *pilot.RunJob {
log.WithFields(log.Fields{
"Service": ServiceName,
"Running": true,
"YtUpdate": YoutubeChecker.Update,
}).Info("request for running job")

if YoutubeChecker.Update {
tmp, err := client.RequestRunJobsOfService(context.Background(), &pilot.ServiceMessage{
Service: ServiceName,
Expand Down
5 changes: 0 additions & 5 deletions service/livestream/youtube/counter/counter.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,6 @@ func ReqRunningJob(client pilot.PilotServiceClient) {
CekCounter: make(map[string]bool),
}
for {
log.WithFields(log.Fields{
"Service": ServiceName,
"Running": false,
"UUID": ServiceUUID,
}).Info("request for running job")

res, err := client.RequestRunJobsOfService(context.Background(), &pilot.ServiceMessage{
Service: ServiceName,
Expand Down