Open chenwardT opened 8 years ago
When a Celery worker writes to the log, the body of the log is printed to both the worker's log file and the main log (debug.log).
Example output (filtering at INFO level, ignore the 'x's at EOLs):
[2015-11-11 19:03:29] INFO [leagues.models:102] create_entries: Bulk created: [<LeagueEntry: <[NA] RANKED_SOLO_5x5 Pantheon's Host GOLD> I: KissMeGoodBye (31)>, <LeagueEntry: <[NA] RANKED_SOLO_5x5 Pantheon's Host GOLD> I: WalterCronkitex [2015-11-11 19:03:29] INFO [lol_stats2.celery:338] store_get_league: Stored 1 leagues for [NA] 43934924 x [2015-11-11 19:03:29] INFO [leagues.models:102] create_entries: Bulk created: [<LeagueEntry: <[NA] RANKED_SOLO_5x5 Pantheon's Mercenaries PLATINUM> V: Kakatomoyo (17)>, <LeagueEntry: <[NA] RANKED_SOLO_5x5 Pantheon's Mercenaries PLATINUMx [2015-11-11 19:03:29] INFO [leagues.models:102] create_entries: Bulk created: [<LeagueEntry: <[NA] RANKED_TEAM_5x5 Cassiopeia's Bandits BRONZE> I: Tabo 5 (18)>, <LeagueEntry: <[NA] RANKED_TEAM_5x5 Cassiopeia's Bandits BRONZE> II: Oxygenx [2015-11-11 19:03:29] INFO [lol_stats2.celery:338] store_get_league: Stored 2 leagues for [NA] 20525646 x [2015-11-11 19:03:29] INFO [leagues.models:102] create_entries: Bulk created: [<LeagueEntry: <[NA] RANKED_SOLO_5x5 Darius's Ritualists GOLD> IV: midnightforever (2)>, <LeagueEntry: <[NA] RANKED_SOLO_5x5 Darius's Ritualists GOLD> V: Hairx [2015-11-11 19:03:29] INFO [lol_stats2.celery:338] store_get_league: Stored 1 leagues for [NA] 527624 x [2015-11-11 19:03:29,201: INFO/Worker-4] Bulk created: [<LeagueEntry: <[NA] RANKED_SOLO_5x5 Pantheon's Host GOLD> I: KissMeGoodBye (31)>, <LeagueEntry: <[NA] RANKED_SOLO_5x5 Pantheon's Host GOLD> I: WalterCronkiteJr (81)>, <LeagueEntry:x [2015-11-11 19:03:29,201: INFO/Worker-4] Stored 1 leagues for [NA] 43934924 x [2015-11-11 19:03:29,400: INFO/Worker-4] Bulk created: [<LeagueEntry: <[NA] RANKED_SOLO_5x5 Pantheon's Mercenaries PLATINUM> V: Kakatomoyo (17)>, <LeagueEntry: <[NA] RANKED_SOLO_5x5 Pantheon's Mercenaries PLATINUM> V: Trynottotry (0)>, x [2015-11-11 19:03:29,686: INFO/Worker-4] Bulk created: [<LeagueEntry: <[NA] RANKED_TEAM_5x5 Cassiopeia's Bandits BRONZE> I: Tabo 5 (18)>, <LeagueEntry: <[NA] RANKED_TEAM_5x5 Cassiopeia's Bandits BRONZE> II: Oxygen o2 (56)>, <LeagueEntryx [2015-11-11 19:03:29,686: INFO/Worker-4] Stored 2 leagues for [NA] 20525646 x [2015-11-11 19:03:29,903: INFO/Worker-4] Bulk created: [<LeagueEntry: <[NA] RANKED_SOLO_5x5 Darius's Ritualists GOLD> IV: midnightforever (2)>, <LeagueEntry: <[NA] RANKED_SOLO_5x5 Darius's Ritualists GOLD> V: HairyDonger (92)>, <LeagueEx [2015-11-11 19:03:29,903: INFO/Worker-4] Stored 1 leagues for [NA] 527624 x [2015-11-11 19:03:29,904: INFO/MainProcess] Task lol_stats2.celery.store_get_league[755c8e81-485d-4631-a4b6-9cec92e4a75c] succeeded in 79.21732128690928s: None x
When a Celery worker writes to the log, the body of the log is printed to both the worker's log file and the main log (debug.log).
Example output (filtering at INFO level, ignore the 'x's at EOLs):