Coder Social home page Coder Social logo

jt-logger's People

Contributors

jethornton avatar saraf avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

turboss saraf

jt-logger's Issues

Empty Log 404

Fix when log is requested that a log is built first

LOG_PART not defined

Traceback (most recent call last):
File "jt-logger.py", line 428, in
main()
File "jt-logger.py", line 421, in main
bot.start()
File "/home/tom-itx/src/logbot/ircbot.py", line 247, in start
SimpleIRCClient.start(self)
File "/home/tom-itx/src/logbot/irclib.py", line 1114, in start
self.ircobj.process_forever()
File "/home/tom-itx/src/logbot/irclib.py", line 229, in process_forever
self.process_once(timeout)
File "/home/tom-itx/src/logbot/irclib.py", line 214, in process_once
self.process_data(i)
File "/home/tom-itx/src/logbot/irclib.py", line 183, in process_data
c.process_data()
File "/home/tom-itx/src/logbot/irclib.py", line 600, in process_data
self._handle_event(Event(command, prefix, target, arguments))
File "/home/tom-itx/src/logbot/irclib.py", line 604, in _handle_event
self.irclibobj._handle_event(self, event)
File "/home/tom-itx/src/logbot/irclib.py", line 325, in _handle_event
if handler[1](connection, event) == "NO MORE":
File "/home/tom-itx/src/logbot/irclib.py", line 1049, in _dispatcher
getattr(self, m)(c, e)
File "jt-logger.py", line 234, in on_part
if LOG_PART:self.format_event("part", event)
NameError: global name 'LOG_PART' is not defined

Does not work with freenode anymore

Something happened in freenode. Logger does not work anymore. While login and password are correct and irssi can log in correctly, the same login and password fails when used in jt-logger:

:NickServ!NickServ@services. NOTICE xxxxx :This nickname is registered. Please choose a different nickname, or identify via /msg NickServ identify .
:NickServ!NickServ@services. NOTICE xxxxx :Invalid password for xxxxx.

message error

File "jt-logger.py", line 263
msg = msg.format(hm, , event.arguments()[0], person, self.user(event))

index.html

builds the main index but not the # channel index's

timestamp

how hard is it to add "AM" or "PM" on the timestamp since it's showing 12 hr format?

path wrong

change to use full path.
def create_index(self, channel):
# delete the index if found
log_dir = os.getcwd()+'/logs'
index_path = os.path.join(log_dir, channel, 'index.html')

crash if someone joins the channel using incorrect capitalization

I am logging a channel on my IRC server. The channel is named '#obits'
Now, if someone else joins the channel using a command /join #OBITS
or say /join #ObItS
The logger crashes with an IOError.

  File "/srv/irclogger3/JT-Logger/jt-logger.py", line 236, in on_join
    if LOG_JOIN:self.format_event("join", event)
  File "/srv/irclogger3/JT-Logger/jt-logger.py", line 345, in format_event
    self.append_log_msg(date, channel, msg)
  File "/srv/irclogger3/JT-Logger/jt-logger.py", line 351, in append_log_msg
    self.create_log(log_path, channel)
  File "/srv/irclogger3/JT-Logger/jt-logger.py", line 361, in create_log
    with open(path, 'w') as log:
IOError: [Errno 2] No such file or directory: '/srv/www/irc_log_dir/#ObItS/2019-06-28.html'

We should perhaps be storing the channel we are supposed to log somewhere, and using that as the canonical name for generating the path of the logfile.

At least, we should not crash.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.