bonbizin / leveldb-go

Automatically exported from code.google.com/p/leveldb-go
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

leveldb.Open() causes to stop writing to file #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. log.SetOutput(io.MultiWriter(f, os.Stdout))
2. log some stuff, shows up in file f
3. open database: levigo.Open(dbName, dbOpts)
4.) log some more stuff, but now it doesn't show up in file f

What is the expected output? What do you see instead?
logging should continue after the db is opened, but it doesn't.
There is a workaround, where you can call log.SetOutput() again just after 
leveldb.Open() and logging resumes.

What version of the product are you using? On what operating system?
go 1.2.1 on amd64 ubuntu 14.04, with leveldb from github on 04/28/14 (sorry, 
commit # missing as the files were copied to a new repo)

Original issue reported on code.google.com by cjosephs...@gmail.com on 7 May 2014 at 9:27

GoogleCodeExporter commented 9 years ago
This project (leveldb-go) is not the same as the levigo project. The levigo 
project (the other one) wraps the original C++ leveldb project. The leveldb-go 
project (this one) is pure Go and does not need the C++ shared library.

I believe that you need to file this bug somewhere else.

Original comment by nigel...@golang.org on 9 May 2014 at 1:35