• Sylvain Rabot's avatar
    Log real file's name and line · 7e7b01fa
    Sylvain Rabot authored
    pkg/kubectl/util/logs & staging/src/k8s.io/apiserver/pkg/util/logs
    use `glog.info(...)` but this function is not made to be wrapped because
    the underlying mechanism use a fixed call trace length to determine
    where the log has been emited.
    
    This results is having `logs.go:49` in the logs which is in the body
    of the wrapper function and thus useless.
    
    Instead use `glog.infoDepth(1, ...)` which tells the underlying mechanism
    to go back 1 more level in the call trace to determine where the log
    has been emitted.
    Signed-off-by: 's avatarSylvain Rabot <sylvain@abstraction.fr>
    7e7b01fa
Name
Last commit
Last update
..
hash Loading commit data...
i18n Loading commit data...
logs Loading commit data...
slice Loading commit data...
term Loading commit data...
BUILD Loading commit data...
service_port.go Loading commit data...
service_port_test.go Loading commit data...
umask.go Loading commit data...
umask_windows.go Loading commit data...
util.go Loading commit data...
util_test.go Loading commit data...