e5a2896c0e
extract logging
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-14 17:35:50 -07:00
18f5fcea28
golint util/, thirdparty/
...
and exchange/bitswap/testutils.go
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-06-18 10:03:57 +07:00
ef294431d4
move util.Key into its own package under blocks
2015-06-01 16:10:08 -07:00
bf22aeec0a
Reorged imports from jbenet/go-ipfs to ipfs/go-ipfs
...
- Modified Godeps/Godeps.json by hand
- [TEST] Updated welcome docs hash to sharness
- [TEST] Updated contact doc
- [TEST] disabled breaking test (t0080-repo refs local)
2015-03-31 12:52:25 -07:00
069b4b5c8e
rm util.NewByteChanReader()
2015-03-12 14:50:01 +01:00
d221d55d85
HTTP: add handlers to allow object creation and modification
2015-01-31 20:47:34 +01:00
474b74f70b
dht/bootstrap: (optional) parallelism + error on peer
...
This also makes it an Error to find a peer.
2015-01-05 06:51:38 -08:00
07b064010e
rewrite of provides to better select peers to send RPCs to
...
refactor test peer creation to be deterministic and reliable
a bit of cleanup trying to figure out TestGetFailure
add test to verify deterministic peer creation
switch put RPC over to use getClosestPeers
rm 0xDEADC0DE
fix queries not searching peer if its not actually closer
2015-01-02 07:42:07 +00:00
49792b2362
refactored cast errors to use a util
2014-11-14 03:19:56 -08:00
4f083d54d6
write a few package doc strings to improve look of godoc
2014-11-08 21:42:36 -08:00
4989dcafed
swarm + handshake: better observed addr check
...
The check needed knowledge of the _listen_ addresses,
not just the interface addresses. Also, the handshake now
sends out all the addresses we accumulate about ourselves.
(this may be bad in the long run, but useful now to test)
2014-11-05 04:01:38 -08:00
05817373d0
Clear up naming around zero address
2014-11-03 20:42:40 +00:00
402fdd2db9
changes from PR
2014-11-03 01:45:45 +00:00
094baf6fbf
error out if attempting connection to loopback
2014-11-03 00:28:07 +00:00
2eac5aeec6
begin code for NAT detection
2014-11-02 21:19:22 +00:00
adec8dac12
util: cleaner ByteChanReader.Read
2014-10-30 04:14:37 -07:00
cb22b62a9b
util: remove broken rand
2014-10-30 04:14:05 -07:00
184c25430b
go-vet friendly codebase
...
- distinguish log.Error and log.Errorf functions
- Initialize structs with field names
- A bit of unreachable code (defers)
2014-10-25 03:46:39 -07:00
f7c1ed39e0
renamed datastore.go -> go-datastore
2014-10-21 15:10:58 -07:00
afa5b7fccc
SetupLogging() also called in init() in util/log.go
2014-10-15 14:22:41 +02:00
3455846b35
add log command
2014-10-15 13:18:00 +02:00
515505dccb
fix IPFS_DEBUG logging
2014-10-15 13:18:00 +02:00
ebdaac7f1e
introduce IPFS_DEBUG env var
2014-10-15 13:18:00 +02:00
960996d166
simplify TildeExpansion()
2014-10-15 13:13:43 +02:00
c9236dd8e1
use mitchellh/go-homedir instead of simple HOME lookup
2014-10-15 12:21:16 +02:00
0dd3316c16
rewrote HOME dir lookup (no cgo)
2014-10-15 11:58:25 +02:00
cb15a437ea
broke up log file + logging env
...
IPFS_LOGGING now takes a logging.Level string
(no more "all") cc @whyrusleeping
2014-10-11 04:44:59 -07:00
a7b69500b1
address concerns in PR and make log stuff more fun
2014-10-10 13:18:20 -07:00
280c7e7e06
implement diagnostics service
2014-10-10 13:18:19 -07:00
972c0f7b4b
u.DOut -> log.Debug
...
and other logging switches. I kept the u.PErr and u.POut in cli
commands, as those do need to write raw output directly.
2014-10-09 04:50:22 -07:00
31cc605c3a
comment out debug msg
2014-10-08 14:49:21 -07:00
dc6fdd39c5
use encoded (pretty) keys only on fs ds
2014-10-08 14:49:04 -07:00
ffe2bdceef
init SetupLoggers
...
this is useful so that loggers are all setup during tests
2014-10-08 02:50:42 -07:00
66839fa1de
changed logging, in dht and elsewhere
...
- use log.* instead of u.*
- use automatic type conversions to .String()
(Peer.String() prints nicely, and avoids calling b58 encoding
until needed)
2014-10-07 21:33:59 -07:00
b98e48836f
added u.Key.String
2014-10-07 21:32:17 -07:00
bdaee9bcb2
some performance tweaks for the dagwriter write path
2014-10-08 03:42:29 +00:00
5c802ae852
add more tests and rework a lot of utility structures
2014-10-07 05:55:28 +00:00
f3ae0e8e1b
u.Hash - error
...
the u.Hash error can be safely ignored (panic) because multihash
only fails from the selection of hash function. If the fn + length
are valid, it won't error.
cc @whyrusleeping
2014-10-06 02:26:52 -07:00
c0250f3c8e
bump logging to ERROR
2014-10-05 14:50:39 -07:00
a13baff33d
fixed data size reporting
2014-10-05 01:22:01 +00:00
0c8ae7674e
loggers: set level
2014-10-04 03:53:21 -07:00
7e1cd59259
initialize loggers at ERROR
2014-10-04 03:36:30 -07:00
612be59643
use string datastore keys.
2014-10-03 15:39:22 -07:00
4727535160
fixing mutability issues in ipns
2014-10-03 19:22:54 +00:00
aa79f38580
cleanup logging setup.
...
- should not be on init, because need debug flag
2014-10-01 02:02:48 -07:00
f085d594aa
vendoring ipns things
2014-10-01 00:44:22 -07:00
54142b2173
update logging in multiple packages
2014-10-01 00:41:30 -07:00
6080944af9
writing files inside ipns works now! also implemented resolve cli command
2014-10-01 00:41:29 -07:00
ee3be129fc
set util.ErrNotFound = ds.ErrNotFound
2014-09-26 23:37:36 -07:00
64ba4cd0df
output + linting
2014-09-22 04:06:17 -07:00