@@ -99,7 +99,7 @@ func (c *Injecting) Refresh(beans []*gs_bean.BeanDefinition) (err error) {
9999 defer func () {
100100 if err != nil || len (stack .beans ) > 0 {
101101 err = fmt .Errorf ("%s ↩\n %s" , err , stack .Path ())
102- log .Errorf (context .Background (), log .TagApp , "%v" , err )
102+ log .Errorf (context .Background (), log .TagAppDef , "%v" , err )
103103 }
104104 }()
105105
@@ -272,7 +272,7 @@ func (c *Injector) getBean(t reflect.Type, tag WireTag, stack *Stack) (BeanRunti
272272 }
273273 if ! slices .Contains (foundBeans , b ) {
274274 foundBeans = append (foundBeans , b )
275- log .Warnf (context .Background (), log .TagApp , "you should call Export() on %s" , b )
275+ log .Warnf (context .Background (), log .TagAppDef , "you should call Export() on %s" , b )
276276 }
277277 }
278278 }
@@ -566,7 +566,7 @@ func (c *Injector) getBeanValue(b BeanRuntime, stack *Stack) (reflect.Value, err
566566 out , err := b .Callable ().Call (NewArgContext (c , stack ))
567567 if err != nil {
568568 if c .forceAutowireIsNullable {
569- log .Warnf (context .Background (), log .TagApp , "autowire error: %v" , err )
569+ log .Warnf (context .Background (), log .TagAppDef , "autowire error: %v" , err )
570570 return reflect.Value {}, nil
571571 }
572572 return reflect.Value {}, err
@@ -576,7 +576,7 @@ func (c *Injector) getBeanValue(b BeanRuntime, stack *Stack) (reflect.Value, err
576576 if o := out [len (out )- 1 ]; util .IsErrorType (o .Type ()) {
577577 if i := o .Interface (); i != nil {
578578 if c .forceAutowireIsNullable {
579- log .Warnf (context .Background (), log .TagApp , "autowire error: %v" , err )
579+ log .Warnf (context .Background (), log .TagAppDef , "autowire error: %v" , err )
580580 return reflect.Value {}, nil
581581 }
582582 return reflect.Value {}, i .(error )
@@ -746,7 +746,7 @@ func NewStack() *Stack {
746746
747747// pushBean records that bean b is being wired, used for cycle detection.
748748func (s * Stack ) pushBean (b * gs_bean.BeanDefinition ) {
749- log .Debugf (context .Background (), log .TagApp , "push %s %s" , b , b .Status ())
749+ log .Debugf (context .Background (), log .TagAppDef , "push %s %s" , b , b .Status ())
750750 s .beans = append (s .beans , b )
751751}
752752
@@ -756,7 +756,7 @@ func (s *Stack) popBean() {
756756 b := s .beans [n - 1 ]
757757 s .beans [n - 1 ] = nil
758758 s .beans = s .beans [:n - 1 ]
759- log .Debugf (context .Background (), log .TagApp , "pop %s %s" , b , b .Status ())
759+ log .Debugf (context .Background (), log .TagAppDef , "pop %s %s" , b , b .Status ())
760760}
761761
762762// Path builds a readable representation of the wiring stack path for errors.
@@ -810,7 +810,7 @@ func (s *Stack) getSortedDestroyers() []func() {
810810 fnValue := reflect .ValueOf (fn )
811811 out := fnValue .Call ([]reflect.Value {v })
812812 if len (out ) > 0 && ! out [0 ].IsNil () {
813- log .Errorf (context .Background (), log .TagApp , "%v" , out [0 ].Interface ())
813+ log .Errorf (context .Background (), log .TagAppDef , "%v" , out [0 ].Interface ())
814814 }
815815 }
816816 }
0 commit comments