Permalink
Browse files

Disabling spurious log output

  • Loading branch information...
1 parent 2588229 commit 571ca3da3b2fe47d9eb869335c3e64bf0a172aef Kevin Smith committed Mar 6, 2013
Showing with 2 additions and 4 deletions.
  1. +1 −1 src/couch_file.erl
  2. +1 −3 src/decouch_reader.erl
View
@@ -244,7 +244,7 @@ open_ns(FilePath, _Options) ->
{ok, Fd} = emmap:open(FilePath, [read, direct, private, nolock]),
%% Hopefully trigger readahead starting from the beginning of the file
{Time, _} = timer:tc(couch_file, read_all, [Fd]),
- io:format(standard_error, "Database '~s' of size ~w bytes prefetched in ~f seconds~n", [FilePath, Size, Time/1000000]),
+ %%io:format(standard_error, "Database '~s' of size ~w bytes prefetched in ~f seconds~n", [FilePath, Size, Time/1000000]),
{ok, Length} = file:position(Fd, eof),
{ok, #file{fd=Fd, eof=Length, path=FilePath}}.
View
@@ -43,14 +43,12 @@ process_to_ets(DbName, TableName) ->
open_process_all(DbName, IterFn) ->
{Db, _} = open(DbName),
all_docs_iter(DbName, Db, IterFn),
- io:format("~s:~p~n", [?FILE, ?LINE]),
close(Db).
open(FilePath) ->
DbName = "foo",
{ok, Fd} = couch_file:open(FilePath, []),
{ok, Header} = couch_file:read_header(Fd),
- io:format("Header: ~p~n", [Header]),
Db = couch_db_updater:init_db(DbName, FilePath, Fd, Header),
{Db, Header}.
@@ -78,5 +76,5 @@ all_docs_iter(Name, Db, IterFun) ->
InFun = fun(KV, Reds, Acc) -> process_each_doc(IterFun, Db, KV, Reds, Acc) end,
{Time, _} = timer:tc(
couch_btree, fold, [Db#db.fulldocinfo_by_id_btree, InFun, FoldAccInit, Options] ),
- io:format(standard_error, "Database '~s' processed in ~f seconds~n", [Name, Time/1000000]),
+ %%io:format(standard_error, "Database '~s' processed in ~f seconds~n", [Name, Time/1000000]),
ok.

0 comments on commit 571ca3d

Please sign in to comment.