Brian Tiger Chow
027de2847a
feat(log) time
2014-11-16 07:00:28 -08:00
Brian Tiger Chow
f1ee23770d
feat(util/time) impl RFC3339Nano UTC utility Format/Parse functions
...
test(time)
expose time format var
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-16 02:45:20 -08:00
Brian Tiger Chow
ed4a8eb782
chore(tests) add Short() -> SkipNow() to slowest tests
...
vanilla:
21.57 real 45.14 user 8.51 sys
short:
14.40 real 31.13 user 5.56 sys
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-15 02:10:53 -08:00
Brian Tiger Chow
25b3106e41
rm logger
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-15 02:10:53 -08:00
Brian Tiger Chow
eb5bb1daa8
feat(debugerror)
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
impl errorf
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
return a debug error
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 17:04:48 -08:00
Juan Batiz-Benet
49792b2362
refactored cast errors to use a util
2014-11-14 03:19:56 -08:00
Jeromy
4f083d54d6
write a few package doc strings to improve look of godoc
2014-11-08 21:42:36 -08:00
Brian Tiger Chow
390f4d7419
readability(util) Do -> ContextDo
...
@jbenet
2014-11-05 10:07:16 -08:00
Brian Tiger Chow
97e11c7d01
fix(do) child listens on ctx too
2014-11-05 10:04:20 -08:00
Brian Tiger Chow
ed247ec154
add do
2014-11-05 10:04:20 -08:00
Juan Batiz-Benet
d26fd58182
ctx closer races #270
2014-11-05 09:26:17 -08:00
Juan Batiz-Benet
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
Jeromy
05817373d0
Clear up naming around zero address
2014-11-03 20:42:40 +00:00
Jeromy
402fdd2db9
changes from PR
2014-11-03 01:45:45 +00:00
Jeromy
094baf6fbf
error out if attempting connection to loopback
2014-11-03 00:28:07 +00:00
Jeromy
2eac5aeec6
begin code for NAT detection
2014-11-02 21:19:22 +00:00
Jeromy
09004e4989
finish addressing PR concerns
2014-11-01 16:07:56 -07:00
Jeromy
f89cfc1108
moved pipes package
2014-11-01 16:07:56 -07:00
Jeromy
ffc59fff1b
add blowfish code and refactor pipes and duplex a little
2014-11-01 16:07:56 -07:00
Jeromy
b02dbc4a6b
Add testutil package and function to generate a dagservice
2014-10-31 06:02:52 +00:00
Juan Batiz-Benet
f62cedf4d7
rm comments
2014-10-30 05:07:07 -07:00
Juan Batiz-Benet
483ccf9f5f
better test exercises saved buf
2014-10-30 04:33:13 -07:00
Juan Batiz-Benet
adec8dac12
util: cleaner ByteChanReader.Read
2014-10-30 04:14:37 -07:00
Juan Batiz-Benet
cb22b62a9b
util: remove broken rand
2014-10-30 04:14:05 -07:00
Juan Batiz-Benet
54c2a14c10
nocolor log fmt
2014-10-26 01:44:11 -07:00
Juan Batiz-Benet
90b989a718
AddCloserChild + net ctxcloser
2014-10-25 21:33:10 -07:00
Juan Batiz-Benet
93497c2d00
muxer now uses ctxCloser
2014-10-25 21:33:10 -07:00
Juan Batiz-Benet
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
Juan Batiz-Benet
210b5df78c
use my go-logging fork
...
until https://github.com/op/go-logging/pull/30 is merged
2014-10-25 03:43:17 -07:00
Juan Batiz-Benet
b66b26098b
nicer, greppable logging
2014-10-22 03:24:05 -07:00
Juan Batiz-Benet
2f345c8515
cleanup: removed key marshal logs
2014-10-22 02:58:04 -07:00
Juan Batiz-Benet
5d86ce56ac
key marshalling + b58 encoding
2014-10-22 02:54:53 -07:00
Juan Batiz-Benet
8d7850eeb5
updated datastore (keytransform)
2014-10-21 15:18:12 -07:00
Juan Batiz-Benet
f7c1ed39e0
renamed datastore.go -> go-datastore
2014-10-21 15:10:58 -07:00
Juan Batiz-Benet
3d2ba37445
moved ctxcloser to own pkg
2014-10-19 06:38:13 -07:00
Juan Batiz-Benet
20d1d354f3
moved XOR keyspace -> util
2014-10-18 20:01:27 -07:00
Juan Batiz-Benet
08af98d412
logging friendliness
2014-10-18 04:36:20 -07:00
Juan Batiz-Benet
e7d713380c
colored logfmt
2014-10-18 04:36:20 -07:00
Henry
02659c68b6
fix IPFS_DEBUG (was set after SetupLogging)
2014-10-18 12:03:47 +02:00
Henry
0631a39492
cleaned up SetupLogging()
2014-10-15 14:23:54 +02:00
Henry
afa5b7fccc
SetupLogging() also called in init() in util/log.go
2014-10-15 14:22:41 +02:00
Henry
e4da27a2a5
implemented ipfs log command
2014-10-15 13:34:38 +02:00
Henry
3455846b35
add log command
2014-10-15 13:18:00 +02:00
Henry
515505dccb
fix IPFS_DEBUG logging
2014-10-15 13:18:00 +02:00
Henry
ebdaac7f1e
introduce IPFS_DEBUG env var
2014-10-15 13:18:00 +02:00
Henry
98d9df544f
remove utils.PErr()
2014-10-15 13:17:04 +02:00
Henry
960996d166
simplify TildeExpansion()
2014-10-15 13:13:43 +02:00
Henry
c9236dd8e1
use mitchellh/go-homedir instead of simple HOME lookup
2014-10-15 12:21:16 +02:00
Henry
0dd3316c16
rewrote HOME dir lookup (no cgo)
2014-10-15 11:58:25 +02:00
Juan Batiz-Benet
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
Jeromy
a7b69500b1
address concerns in PR and make log stuff more fun
2014-10-10 13:18:20 -07:00
Jeromy
280c7e7e06
implement diagnostics service
2014-10-10 13:18:19 -07:00
Juan Batiz-Benet
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
Juan Batiz-Benet
31cc605c3a
comment out debug msg
2014-10-08 14:49:21 -07:00
Juan Batiz-Benet
dc6fdd39c5
use encoded (pretty) keys only on fs ds
2014-10-08 14:49:04 -07:00
Juan Batiz-Benet
ffe2bdceef
init SetupLoggers
...
this is useful so that loggers are all setup during tests
2014-10-08 02:50:42 -07:00
Juan Batiz-Benet
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
Juan Batiz-Benet
b98e48836f
added u.Key.String
2014-10-07 21:32:17 -07:00
Jeromy
bdaee9bcb2
some performance tweaks for the dagwriter write path
2014-10-08 03:42:29 +00:00
Jeromy
6e0cfb3273
removed error from return type of blocks.NewBlock()
2014-10-07 20:46:01 +00:00
Jeromy
5c802ae852
add more tests and rework a lot of utility structures
2014-10-07 05:55:28 +00:00
Juan Batiz-Benet
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
Juan Batiz-Benet
c0250f3c8e
bump logging to ERROR
2014-10-05 14:50:39 -07:00
Jeromy
a13baff33d
fixed data size reporting
2014-10-05 01:22:01 +00:00
Juan Batiz-Benet
0c8ae7674e
loggers: set level
2014-10-04 03:53:21 -07:00
Juan Batiz-Benet
7e1cd59259
initialize loggers at ERROR
2014-10-04 03:36:30 -07:00
Juan Batiz-Benet
612be59643
use string datastore keys.
2014-10-03 15:39:22 -07:00
Jeromy
4727535160
fixing mutability issues in ipns
2014-10-03 19:22:54 +00:00
Juan Batiz-Benet
aa79f38580
cleanup logging setup.
...
- should not be on init, because need debug flag
2014-10-01 02:02:48 -07:00
Juan Batiz-Benet
f085d594aa
vendoring ipns things
2014-10-01 00:44:22 -07:00
Jeromy
54142b2173
update logging in multiple packages
2014-10-01 00:41:30 -07:00
Jeromy
6080944af9
writing files inside ipns works now! also implemented resolve cli command
2014-10-01 00:41:29 -07:00
Juan Batiz-Benet
ee3be129fc
set util.ErrNotFound = ds.ErrNotFound
2014-09-26 23:37:36 -07:00
Brian Tiger Chow
63a2855a49
feat(util:context) add error logging to context
...
This commit...
is a second attempt at: https://github.com/jbenet/go-ipfs/pull/68
partially addresses: https://github.com/jbenet/go-ipfs/issues/66
is the result of discussion at:
https://gist.github.com/perfmode/f2951c1ed3a02c484d0b
2014-09-23 21:08:36 -04:00
Brian Tiger Chow
767d6ca633
refac(bitswap, util) extract KeySet
2014-09-22 04:06:19 -07:00
Juan Batiz-Benet
64ba4cd0df
output + linting
2014-09-22 04:06:17 -07:00
Juan Batiz-Benet
7a785ded74
sync counter for processing things
2014-09-22 04:05:23 -07:00
Brian Tiger Chow
c07578d6ab
chore(util) rm unused DatastoreKey method
2014-09-22 04:05:20 -07:00
Brian Tiger Chow
96ab834325
feat(util) add u.Key().ToDatastore() method
2014-09-22 04:05:15 -07:00
Brian Tiger Chow
697625a9e5
feat(util:testutil) add NewBlockOrFail(t, data) factory method
...
for use in tests
2014-09-16 04:03:30 -07:00
Jeromy
35a87e9d07
expand path names for add command, and pass errors up even more
2014-09-13 04:42:48 +00:00
Brian Tiger Chow
7968b45e58
vendor dependencies with godep
...
dependencies are vendored into Godeps/_workspace and commit versions are
recorded in Godeps.json
update datastore to e89f0511
update go.crypto
2014-09-09 22:39:42 -07:00
Juan Batiz-Benet
0fdc571554
POut should not have a newline
2014-08-20 18:29:31 -07:00
Jeromy
8a1fdbb83d
rewrite message response listening framework
2014-08-15 22:37:53 -07:00
Jeromy
a43886245e
more work implementing coral type lookups
2014-08-10 21:02:05 -07:00
Jeromy
ae6285e5a3
address issues from code review (issue #25 )
2014-08-08 18:09:21 -07:00
Jeromy
bd9fc2b782
fix bug in routing table lookups
2014-08-07 06:21:44 -07:00
Jeromy
71c7c5844a
providers interface is coming along nicely
2014-08-07 06:21:12 -07:00
Jeromy
8d98d4b48d
making connections between nodes get closer to working
2014-08-07 06:21:11 -07:00
Jeromy
3444d41dce
work on framework for dht message handling
2014-08-07 06:18:20 -07:00
Juan Batiz-Benet
3f97e7e385
goling: PeerId -> ID
2014-07-22 02:28:25 -07:00
Juan Batiz-Benet
f718bd6a92
go lint
...
link errors left:
- protocol buffers output is not lint-friendly
2014-07-22 02:20:08 -07:00
Juan Batiz-Benet
4e1c413e82
move tilde expnasion to util.
2014-07-05 17:34:44 -07:00
Juan Batiz-Benet
61ac7191c4
global hash func
2014-07-05 15:14:18 -07:00
Juan Batiz-Benet
1d3e72a33b
gofmt
2014-07-05 15:02:19 -07:00
Juan Batiz-Benet
4d80a2d214
key
2014-07-05 14:55:12 -07:00
Juan Batiz-Benet
69e92f939c
util
2014-07-05 01:57:03 -07:00