[tahoe-lafs-trac-stream] [tahoe-lafs] #326: use consistent time stamps in logging
tahoe-lafs
trac at tahoe-lafs.org
Tue Oct 1 11:58:07 UTC 2013
#326: use consistent time stamps in logging
--------------------------------+----------------------
Reporter: zooko | Owner: zooko
Type: defect | Status: reopened
Priority: major | Milestone: 1.5.0
Component: code-nodeadmin | Version: 0.8.0
Resolution: | Keywords:
Launchpad Bug: |
--------------------------------+----------------------
Changes (by zooko):
* status: closed => reopened
* resolution: wontfix =>
Old description:
> Brian:
>
> Would it be okay if I changed {{{flogtool dump}}} and {{{flogtool web-
> viewer}}} to use the ISO 8601'ish, UTC, format that we earlier agreed and
> and that is implemented in
>
> http://allmydata.org/trac/tahoe/browser/src/allmydata/node.py#L29
>
> Currently I'm trying to match two logs, one of which is in dump format
> and one of which is in web-viewer format, and I can't find any matching
> timestamps. The timestamps don't have any time zone information attached
> to them, which makes me think that they must be in UTC, but I'm not sure.
>
> Examples:
>
> from the dump:
>
> {{{
> oy2wi53k 1204167662.092443: helper: upload_chk query for SI
> fxka6q4pfenkvchyh2z4xkg5xa
> oy2wi53k 1204167662.0932679: doing a quick check+UEBfetch
> g5rdi5te 1204167662.096379: storage: slot_readv
> n5cbdwdbi3bec6opkmvnd6hhdm []
> g5rdi5te 1204167662.0970781: returning shares [1]
> }}}
>
> from the web-view:
>
> * 17:52:32 0.7390 ![26722]: !AssistedUploader starting
> * 17:52:32 0.7390 ![26724]: contacting helper..
> * 17:52:32 0.9500 ![26725]: helper says we need to upload
> * 17:52:33 0.5810 ![26731]: upload finished, building readcap
>
> !>>> pyutil.time_format.iso_utc(1204167662.092443)
> '2008-02-28_03:01:02.092443'
>
> So there's either a UTC-vs.-localtime problem here, or else I'm looking
> at logs from two different times. Anyway, I'll stop posting my debugging
> notes in this ticket now. ;-)
>
> assigning to Brian with the intent that he will answer the "yea/nay"
> question and assign it back to me
New description:
Brian:
Would it be okay if I changed {{{flogtool dump}}} and {{{flogtool web-
viewer}}} to use the ISO 8601'ish, UTC, format that we earlier agreed and
and that is implemented in
http://allmydata.org/trac/tahoe/browser/src/allmydata/node.py#L29
Currently I'm trying to match two logs, one of which is in dump format and
one of which is in web-viewer format, and I can't find any matching
timestamps. The timestamps don't have any time zone information attached
to them, which makes me think that they must be in UTC, but I'm not sure.
Examples:
from the dump:
{{{
oy2wi53k 1204167662.092443: helper: upload_chk query for SI
fxka6q4pfenkvchyh2z4xkg5xa
oy2wi53k 1204167662.0932679: doing a quick check+UEBfetch
g5rdi5te 1204167662.096379: storage: slot_readv n5cbdwdbi3bec6opkmvnd6hhdm
[]
g5rdi5te 1204167662.0970781: returning shares [1]
}}}
from the web-view:
* 17:52:32 0.7390 ![26722]: !AssistedUploader starting
* 17:52:32 0.7390 ![26724]: contacting helper..
* 17:52:32 0.9500 ![26725]: helper says we need to upload
* 17:52:33 0.5810 ![26731]: upload finished, building readcap
!>>> pyutil.time_format.iso_utc(1204167662.092443)
'2008-02-28_03:01:02.092443'
So there's either a UTC-vs.-localtime problem here, or else I'm looking at
logs from two different times. Anyway, I'll stop posting my debugging
notes in this ticket now. ;-)
assigning to Brian with the intent that he will answer the "yea/nay"
question and assign it back to me
--
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/326#comment:10>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list