mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-12 07:41:02 +00:00
revisions 1
This commit is contained in:
parent
1b10f26258
commit
a7fada30dd
2 changed files with 3 additions and 6 deletions
|
|
@ -34,7 +34,7 @@ func NewAuth(logger logger.Logger, url string, scopes []string, authUrl, tokenUr
|
|||
auth := &Auth{
|
||||
logger: logger,
|
||||
cookieName: "molecula-chip",
|
||||
refreshWithin: time.Minute * time.Duration(15),
|
||||
refreshWithin: 15 * time.Minute,
|
||||
groupEndpoint: groupEndpoint,
|
||||
logoutEndpoint: logout,
|
||||
fbURL: url,
|
||||
|
|
|
|||
|
|
@ -632,11 +632,8 @@ func (m *Command) setupQueryLogger() error {
|
|||
sighup := make(chan os.Signal, 1)
|
||||
signal.Notify(sighup, syscall.SIGHUP)
|
||||
go func() {
|
||||
for {
|
||||
// reopen log file on SIGHUP
|
||||
<-sighup
|
||||
err = f.Reopen()
|
||||
if err != nil {
|
||||
for range sighup {
|
||||
if err := f.Reopen(); err != nil {
|
||||
m.querylogger.Infof("reopen: %s\n", err.Error())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue