Your ROOT_URL in app.ini is http://git.slaventius.ru/ but you are visiting http://37.143.12.169/test3k/umate/commit/ce6d91001209378615c19fd02a23f050916b1f00?style=unified&whitespace=show-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
10 additions and
8 deletions
pkg/logger/logger.go
@ -10,12 +10,20 @@ import (
type Logger struct {
* logrus . Logger
tags map [ string ] string
}
func NewLogger ( appSource string , dsn string ) * Logger {
logger := logrus . New ( )
logger . SetReportCaller ( true ) // Добавим отображение строки
//
lo := Logger {
Logger : logger ,
tags : make ( map [ string ] string ) ,
}
lo . tags [ "app" ] = appSource
//
if dsn == "" {
logger . Warn ( "sentry dsn is empty, its use is not possible" )
@ -29,19 +37,13 @@ func NewLogger(appSource string, dsn string) *Logger {
} ) ; err != nil {
log . Fatal ( err )
} else {
//
tags := make ( map [ string ] string )
tags [ "app" ] = appSource
hook . Timeout = 1 * time . Second
hook . SetTagsContext ( tags )
hook . SetTagsContext ( lo . tags )
//
logger . Hooks . Add ( hook )
}
}
return & Logger {
Logger : logger ,
}
return & lo
}