File tree 5 files changed +9
-5
lines changed
5 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /usr/ bin/env bash
2
2
3
3
# This script is used to checkout a TiDB PR branch in a forked repo.
4
4
if test -z $1 ; then
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /usr/ bin/env bash
2
2
3
3
TIDB_TEST_STORE_NAME=$TIDB_TEST_STORE_NAME
4
4
TIKV_PATH=$TIKV_PATH
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /usr/ bin/env bash
2
2
# This file modified from k8s
3
3
# https://github.com/kubernetes/kubernetes/blob/master/hooks/pre-commit
4
4
# Now It's removed, The Reason is https://github.com/kubernetes/community/issues/729
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ import (
60
60
"github.com/prometheus/client_golang/prometheus"
61
61
"github.com/prometheus/client_golang/prometheus/push"
62
62
"github.com/struCoder/pidusage"
63
- _ "go.uber.org/automaxprocs"
63
+ "go.uber.org/automaxprocs/maxprocs "
64
64
"go.uber.org/zap"
65
65
)
66
66
@@ -569,6 +569,10 @@ func setupLog() {
569
569
570
570
err = logutil .InitLogger (cfg .Log .ToLogConfig ())
571
571
terror .MustNil (err )
572
+ // Disable automaxprocs log
573
+ nopLog := func (string , ... interface {}) {}
574
+ _ , err = maxprocs .Set (maxprocs .Logger (nopLog ))
575
+ terror .MustNil (err )
572
576
}
573
577
574
578
func printInfo () {
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /usr/ bin/env bash
2
2
3
3
set -euo pipefail
4
4
You can’t perform that action at this time.
0 commit comments