[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #17588 [GetTor]: GetTor Logging
#17588: GetTor Logging
---------------------+---------------------
Reporter: sukhbir | Owner: ilv
Type: defect | Status: new
Priority: Medium | Milestone:
Component: GetTor | Version:
Severity: Normal | Resolution:
Keywords: | Actual Points:
Parent ID: | Points:
Sponsor: |
---------------------+---------------------
Comment (by ilv):
Replying to [comment:2 sukhbir]:
> Replying to [comment:1 ilv]:
>
> > What about if a "request" is considered whenever we reply to an email
(or a message, or a DM), and we make the distinction about the type of
request i.e. between sending links, help message, mirrors?
>
> Do you mean individual counters for link, help, mirror etc?
>
\\
Yes, that way we can know how many requests we receive for links vs
mirrors, for instance.
\\
> > Is this related to the number of requests mentioned above (number of
requests)?
>
> Just storing the date along with each request should work. dd-mm-yyy.
Sounds OK?
>
\\
I'm a little confused here. This sounds like we are going to store each
request, or maybe you are talking about extracting that info from the log
files? If so, the counter for number of requests for each channel is going
to be daily/weekly/monthly?
\\
> > Right now after 100 requests. I changed this a while ago in order to
make some tests, and I didn't change it back. I think 10 or less should be
a good number.
>
> Where is this constant defined? Since thus number is arbitrary in any
case, 10 sounds OK.
>
\\
This is defined in smtp.cfg (and xmpp.cfg, twitter.cfg)
[https://gitweb.torproject.org/gettor.git/tree/smtp.cfg 1]
\\
> > I think we have two options here:
> >
> > 1) extracting this from the log files, and then insert it into the
database.
> > 2) storing this on the database directly when we process a request.
> >
> > I would say 2), because I think we should use the log files to help
debugging if/when something goes wrong, not for extracting data.
>
> Do you think it matters if we are only reading from the log file? I am
personally OK with both. The deciding factor here is which will take more
time to implement? (Unless I am missing your concern with 1).
\\
Hmm, on a second thought, maybe we should go for 2), this way we avoid
interacting with the database on each request, and we only do it once a
day or so.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/17588#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs