ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-7.2/src/s_log.c
(Generate patch)

Comparing ircd-hybrid-7.2/src/s_log.c (file contents):
Revision 34 by lusky, Sun Oct 2 21:05:51 2005 UTC vs.
Revision 581 by michael, Tue May 2 07:50:39 2006 UTC

# Line 114 | Line 114 | write_log(const char *message)
114  
115   #ifdef _WIN32
116    nbytes = snprintf(buf, sizeof(buf), "[%s] %s\r\n",
117 +                    smalldate(CurrentTime), message);
118   #else
119    nbytes = snprintf(buf, sizeof(buf), "[%s] %s\n",
119 #endif
120                      smalldate(CurrentTime), message);
121 + #endif
122    fbputs(buf, logFile, nbytes);
123   }
124    
# Line 205 | Line 206 | log_user_exit(struct Client *source_p)
206   #ifdef SYSLOG_USERS
207    if (IsClient(source_p))
208    {
209 <    ilog(L_INFO, "%s (%3ld:%02ld:%02ld): %s!%s@%s %llu/%llu\n",
210 <         myctime(source_p->firsttime),
211 <          (signed long) on_for / 3600,
212 <          (signed long) (on_for % 3600)/60,
213 <          (signed long) on_for % 60,
214 <          source_p->name, source_p->username, source_p->host,
214 <          source_p->localClient->send.bytes>>10,
215 <          source_p->localClient->recv.bytes>>10);
209 >    ilog(L_INFO, "%s (%3u:%02u:%02u): %s!%s@%s %llu/%llu",
210 >         myctime(source_p->firsttime), on_for / 3600,
211 >         (on_for % 3600)/60, on_for % 60,
212 >         source_p->name, source_p->username, source_p->host,
213 >         source_p->localClient->send.bytes>>10,
214 >         source_p->localClient->recv.bytes>>10);
215      }
216   #else
217    {
# Line 239 | Line 238 | log_user_exit(struct Client *source_p)
238        if (user_log_fb != NULL)
239        {
240          size_t nbytes = ircsprintf(linebuf,
241 <                   "%s (%3ld:%02ld:%02ld): %s!%s@%s %llu/%llu\n",
241 >                   "%s (%3u:%02u:%02u): %s!%s@%s %llu/%llu\n",
242                     myctime(source_p->firsttime),
243 <                   (signed long) on_for / 3600,
244 <                   (signed long) (on_for % 3600)/60,
245 <                   (signed long) on_for % 60,
243 >                   on_for / 3600,
244 >                   (on_for % 3600)/60,
245 >                   on_for % 60,
246                     source_p->name, source_p->username, source_p->host,
247                     source_p->localClient->send.bytes>>10,
248                     source_p->localClient->recv.bytes>>10);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines