Skip to content
This repository was archived by the owner on Dec 13, 2023. It is now read-only.

Commit 3f9f5f3

Browse files
committed
Logger Llongfile -> Lshortfile
Updated travis
1 parent cf3b319 commit 3f9f5f3

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ services:
55

66
language: go
77
go:
8-
- 1.9.x
9-
- 1.10.x
10-
- 1.11.x
8+
- 1.13.x
9+
- 1.14.x
10+
- 1.15.x
1111
install: true
1212

1313
before_script:

connector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
// NewConnector returns a new database connector
1414
func NewConnector(hosts ...string) driver.Connector {
1515
return &CqlConnector{
16-
Logger: log.New(os.Stderr, "cql ", log.Ldate|log.Ltime|log.LUTC|log.Llongfile),
16+
Logger: log.New(os.Stderr, "cql ", log.Ldate|log.Ltime|log.LUTC|log.Lshortfile),
1717
ClusterConfig: NewClusterConfig(hosts...),
1818
}
1919
}

cql_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
)
1313

1414
var (
15-
TestLogStderr = log.New(os.Stderr, "cql ", log.Ldate|log.Ltime|log.LUTC|log.Llongfile)
15+
TestLogStderr = log.New(os.Stderr, "cql ", log.Ldate|log.Ltime|log.LUTC|log.Lshortfile)
1616
TestHostValid string
1717
TestHostInvalid string
1818
ConnectTimeoutValidString string
@@ -41,7 +41,7 @@ func TestMain(m *testing.M) {
4141
func setupForTesting() int {
4242
flag.StringVar(&TestHostValid, "hostValid", "127.0.0.1", "a host where a Cassandra database is running")
4343
flag.StringVar(&TestHostInvalid, "hostInvalid", "169.254.200.200", "a host where a Cassandra database is not running")
44-
flag.StringVar(&ConnectTimeoutValidString, "connectTimeoutValid", "10s", "the connect timeout time duration for host valid tests (ClusterConfig.ConnectTimeout)")
44+
flag.StringVar(&ConnectTimeoutValidString, "connectTimeoutValid", "20s", "the connect timeout time duration for host valid tests (ClusterConfig.ConnectTimeout)")
4545
connectTimeoutInvalidString := flag.String("connectTimeoutInvalid", "1ms", "the connect timeout time duration for host invalid tests (ClusterConfig.ConnectTimeout)")
4646
flag.StringVar(&TimeoutValidString, "timeoutValid", "10s", "the timeout time duration for host valid tests (ClusterConfig.Timeout)")
4747
flag.BoolVar(&DisableDestructiveTests, "disableDestructiveTests", false, "set to disable the destructive database tests on cqltest keyspace")

globals.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ var (
6767

6868
// CqlDriver is the sql driver
6969
CqlDriver = &CqlDriverStruct{
70-
Logger: log.New(os.Stderr, "cql ", log.Ldate|log.Ltime|log.LUTC|log.Llongfile),
70+
Logger: log.New(os.Stderr, "cql ", log.Ldate|log.Ltime|log.LUTC|log.Lshortfile),
7171
}
7272
)
7373

statement.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func (cqlStmt *CqlStmt) queryContext(ctx context.Context, values []interface{})
8686
}, nil
8787
}
8888

89-
// ColumnConverter provides driver ValueConverter for statment
89+
// ColumnConverter provides driver ValueConverter for statement
9090
func (cqlStmt *CqlStmt) ColumnConverter(index int) driver.ValueConverter {
9191
return converter{}
9292
}

0 commit comments

Comments
 (0)