Brian Tiger Chow
77696a47f7
events(bitswap) try the new event logger in the bitswap GetBlock method
...
@jbenet
@whyrusleeping
Let me know if you want to direct the eventlog output to _both_ the file
and stderr. Right now it goes to file. Perhaps this is just a minor bip
in the larger discussion around log levels.
https://github.com/jbenet/go-ipfs/issues/292
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:18 +00:00
Brian Tiger Chow
cfd7d5369b
test(bitswap)
...
@whyrusleeping This appears to be a timing issue. The asynchronous
nature of the new structure provides has the bitswap waiting on the
context a bit more. This isn't a problem at all, but in this test, it
makes the functions return in an inconveniently timely manner.
TODO don't let the test depend on time.
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:18 +00:00
Jeromy
5dece164cc
dont panic on empty wantlist
2014-12-05 20:53:18 +00:00
Jeromy
5be35a83f1
beginnings of a bitswap refactor
2014-12-05 20:53:18 +00:00
Juan Batiz-Benet
11508f8f19
Merge pull request #372 from chriscool/add_quiet_flag
...
Implement the -q or --quiet flag to add with minimal output
2014-12-05 15:45:49 -05:00
Juan Batiz-Benet
4795ff3418
Merge pull request #401 from zignig/namesys_fix
...
Validity time not checked properly
2014-12-05 10:39:09 -05:00
Simon Kirkby
284f4a2c47
Validity time not checked properly
...
name publishing was failing of bad format.
2014-12-04 20:39:35 +08:00
Jeromy Johnson
2ec2c85cbb
Merge pull request #396 from jbenet/idcmd-fix
...
Fix ID command lookups of unconnected nodes
2014-12-01 21:41:15 +00:00
Jeromy
b0e915be47
cleanup useless debug statement
2014-12-01 17:08:35 +00:00
Jeromy
28a32915b7
fix for #381
2014-12-01 08:34:07 +00:00
Christian Couder
aca62a420a
Add sharness test for ipfs add --quiet
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-11-30 14:32:08 +01:00
Christian Couder
5bfdc2e2b7
Add --quiet option to ipfs add
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-11-30 14:23:08 +01:00
Ethan Buchman
edba015e9e
docs folder and some fuse docs. closes #259
2014-11-28 01:55:04 -05:00
Brian Tiger Chow
ff23d2d377
Merge pull request #390 from jbenet/misc/2014-11-0X
...
hotfix(logging) fix interpretation of peer ID in Loggable output
2014-11-27 18:58:55 -08:00
Brian Tiger Chow
52631c697e
fix(logging) interpret peer id strings correctly
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-27 17:29:52 -08:00
Brian Tiger Chow
8d6f2ed0bc
chore(main) move logging statement to more appropriate place
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-27 17:06:20 -08:00
Brian Tiger Chow
bad4db3135
Merge pull request #363 from jbenet/misc/2014-10-2X
...
miscellaneous fixes
2014-11-25 15:57:57 -08:00
Brian Tiger Chow
0fc95d5add
log(swarm, netmessage) Event: connSetup(begin|success)
...
+ netmessage is now loggable
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-25 06:16:40 -08:00
Brian Tiger Chow
3ed9b0c4e1
log(dht) Event: connect
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-25 06:16:40 -08:00
Brian Tiger Chow
f3b71cfbfd
log(core) Event: bootstrap
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-25 06:16:40 -08:00
Brian Tiger Chow
9e6177ef2e
log(main) add log event for executing pre-command hooks
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-25 06:16:39 -08:00
Brian Tiger Chow
b5dc686fda
feat(main) create root context
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-25 06:16:39 -08:00
Brian Tiger Chow
b8c96b2505
log(dht) add eventlog.Update event
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-25 06:16:39 -08:00
Brian Tiger Chow
247fd676a3
docs(eventlog)
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-25 06:16:39 -08:00
Brian Tiger Chow
58d299eb2e
refactor(eventlog) rename ContextWithLoggable
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
fix(eventlog) compilation error
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-25 06:16:39 -08:00
Brian Tiger Chow
08d709d273
refactor(eventlog) extract Loggable
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
# TYPES
# feat
# fix
# docs
# style (formatting, missing semi colons, etc; no code change):
# refactor
# test (adding missing tests, refactoring tests; no production code change)
# chore (updating grunt tasks etc; no production code change)
2014-11-25 06:16:39 -08:00
Brian Tiger Chow
72a0cc18ce
fix(bitswap) shutdown
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-25 06:12:36 -08:00
Brian Tiger Chow
3fdbd6cd15
fix(bitswap/notifications) don't force sender to block on receiver
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-25 06:12:35 -08:00
Juan Batiz-Benet
f6235c5cc6
importer: simplified splitter
...
The splitter is simplified using io.ReadFull, as this function
does exactly what we wanted.
I believe io.ErrUnexpectedEOF should be handled as an EOF here,
but please correct me if I'm wrong.
2014-11-25 06:12:35 -08:00
Matt Bell
706ebe8d24
daemon: Set allowed API origins in API_ORIGIN environment variable
2014-11-25 06:12:35 -08:00
Matt Bell
aaab7d0898
commands/http: Allow API requests from whitelisted origins
2014-11-25 06:12:35 -08:00
Brian Tiger Chow
2497c93897
log(core) bootstrapping error -> critical
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-25 06:12:35 -08:00
Brian Tiger Chow
4831ca6d57
refactor(config) use util method
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-25 06:12:35 -08:00
Brian Tiger Chow
18202166e3
Merge pull request #385 from chriscool/update_maybebtc_logrus
...
Update github.com/maybebtc/logrus dependency
2014-11-24 22:41:03 -08:00
Christian Couder
9d7d02c21c
Update github.com/maybebtc/logrus dependency
...
This patch was generated by running:
$ godep update github.com/maybebtc/logrus
Without this, `godep restore` fails like this:
```
$ LANG=C godep restore
fatal: reference is not a tree: 005463f8fb49c4a6f36181e05157e111ec5cf8a3
godep: restore: exit status 128
```
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-11-25 06:44:46 +01:00
Brian Tiger Chow
ca3e83016c
Merge pull request #380 from jbenet/fix/eventlog-init-condition
...
fix(eventlog) initialization
2014-11-24 16:14:19 -08:00
Brian Tiger Chow
90ed148209
fix(eventlog) apply settings upon initialization
...
This commit applies the logging settings to the logging system upon
initialization `ipfs init` and `ipfs daemon --init`.
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-24 16:05:51 -08:00
Brian Tiger Chow
4d497f1c6e
refactor(repo) mv ConfigureLogger to repo package
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Conflicts:
cmd/ipfs/main.go
2014-11-24 16:05:51 -08:00
Brian Tiger Chow
2c38487eb0
fix(eventlog) configure logging if repo is initialized
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-24 16:05:51 -08:00
Juan Batiz-Benet
6c94a0715f
Merge pull request #379 from chriscool/fix/nil-options
...
Add sharness tests for ipfs add and cat
2014-11-24 11:33:02 -05:00
Christian Couder
5e133a136c
Add sharness tests for ipfs add and cat
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-11-23 21:02:39 +01:00
Juan Batiz-Benet
6b615478a3
Merge pull request #374 from chriscool/make_test_expensive
...
Add test_expensive target to the main Makefile
2014-11-23 10:45:56 -05:00
Juan Batiz-Benet
cd914c11a9
Merge pull request #378 from dborzov/fix/nil-options
...
Hotfix: return parsed options if argument parsing failed
2014-11-23 10:42:24 -05:00
Peter Borzov
a76bac0dcc
Hotfix: return parsed options if argument parsing failed
2014-11-23 05:56:29 -05:00
Brian Tiger Chow
f6c656c7d2
Merge pull request #375 from chriscool/fix_dot_gitignore
...
Remove dot and slash before files in cmd/ipfs/.gitignore
2014-11-22 22:24:41 -08:00
Christian Couder
8b8b6ce9e2
Remove dot and slash before files in cmd/ipfs/.gitignore
...
It looks like files are not ignored when they are listed
starting with ./ in a .gitignore file.
At least this is true for me on Linux for the "ipfs"
binary in "cmd/ipfs/.gitignore".
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-11-22 21:55:12 +01:00
Christian Couder
3edbadd120
Add test_expensive target to the main Makefile
...
Now 'make test' will run the go tests with option -test.short
and the sharness tests without any option.
And 'make test_expensive' will run the go tests without any
option and the sharness tests with option TEST_EXPENSIVE=1.
This should help fix the first part of issue #283 .
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-11-22 16:08:24 +01:00
Jeromy
34da5f039c
log formatting (info -> infof)
2014-11-21 03:54:26 +00:00
Juan Batiz-Benet
8bf7948722
Merge pull request #369 from jbenet/utp
...
Add utp as a transport
2014-11-20 18:39:18 -08:00
Brian Tiger Chow
c3fd9b5b20
feat(Dockerfile) expose UDP 4002 for swarm traffic
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-20 16:27:39 -08:00