mirror of
https://github.com/datarhei/core.git
synced 2025-11-01 11:52:46 +08:00
Allow to define a logging target
This commit is contained in:
@@ -12,7 +12,7 @@ import (
|
||||
|
||||
func (r *queryResolver) Log(ctx context.Context) ([]string, error) {
|
||||
if r.LogBuffer == nil {
|
||||
r.LogBuffer = log.NewBufferWriter(log.Lsilent, 1)
|
||||
r.LogBuffer = log.NewBufferWriter(1)
|
||||
}
|
||||
|
||||
events := r.LogBuffer.Events()
|
||||
|
||||
Reference in New Issue
Block a user