Server logging

This commit is contained in:
Luke Kysow
2017-07-08 16:13:31 -07:00
parent 7747bc54ed
commit 4aa91c2055
5 changed files with 45 additions and 54 deletions

View File

@@ -72,7 +72,7 @@ type Command struct {
func (c *CommandHandler) ExecuteCommand(ctx *CommandContext) {
src := fmt.Sprintf("%s/pull/%d", ctx.BaseRepo.FullName, ctx.Pull.Num)
// it's safe to reuse the underlying logger e.logger.Log
ctx.Log = logging.NewSimpleLogger(src, c.logger.Log, true, c.logger.Level)
ctx.Log = logging.NewSimpleLogger(src, c.logger.Logger, true, c.logger.Level)
defer c.recover(ctx)
// need to get additional data from the PR