-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
need 'Add log' for ipfs add #1353
Comments
On Wed, Jun 10, 2015 at 09:22:12AM -0700, Jeromy Johnson wrote:
First pass at a UI: $ ipfs log add sorted by increasing addition timestamps. I'd make the timestamps for Potential arguments:
|
|
On Wed, Jun 10, 2015 at 12:32:57PM -0700, Juan Batiz-Benet wrote:
I love reflog, but it's about recording the history of mutable We likely do want it's expiration handling though. |
ui issue aside, is this to be put as an eventlog or util/log? From the codebase, util/log's output is os.Stderr, not a file. Since they are both going to be unified, I suppose the final output is file. Or I wonder if the ui discussion drives the consensus of what should be logged to file (e.g. "HEAD's log" / any operation that mutates local dag, if there is a HEAD hash to summarize the local blocks at a given time). |
@rht this is a different kind of "log" than the eventlog and util/log. those are code/implementation logs, this is more a logical user-operation log. we'd want this as a structured log (probably an ipfs object)
yeah, exactly. we'd have things like:
|
(I'm new to IPFS and unfimiliar with golang). Isn't adding is basically building the ipfs objects then pinning the root? I think a pin log would be more useful in the future, maybe logging if the pinning was initiated from an add, a get or an explicit pin command too. Then of course the add log could be simply implemented by filtering the pin log. |
@leni536 want to make this? What about rht@0fed045
|
Yeah, seems easy enouigh, it will be my first interaction with go though. I think I will start with 1. and 2., I know nothing about how the pin state is stored or if it could be a subject to change later. Some random thoughts: /random thoughts I will be happy to implement a simple text log right now though. |
I think we will want it to be a dag eventually, but I also think that doing so will require a lot more design work to figure out how to do that correctly. For now, if we just do a text log i think it would be good. |
One big problem I have is that i will add something, and then forget the hash. I need a way to go and look up things that i've already added. This also has the added bonus of being able to go through and see which pins you want to remove when cleaning up your disk.
The text was updated successfully, but these errors were encountered: