Remove print unhandled in daemon mode
This commit is contained in:
parent
f9f54989fe
commit
a4fd04c310
6 changed files with 8 additions and 13 deletions
|
|
@ -109,9 +109,9 @@ def load_file(filename, context):
|
|||
|
||||
# Add the server in the context
|
||||
if context.add_server(srv, get_boolean(server, "autoconnect")):
|
||||
print("Server '%s' successfully added." % srv.id)
|
||||
logger.info("Server '%s' successfully added." % srv.id)
|
||||
else:
|
||||
print("Can't add server '%s'." % srv.id)
|
||||
logger.error("Can't add server '%s'." % srv.id)
|
||||
|
||||
# Load module and their configuration
|
||||
for mod in config.getNodes("module"):
|
||||
|
|
@ -130,8 +130,8 @@ def load_file(filename, context):
|
|||
|
||||
# Other formats
|
||||
else:
|
||||
print (" Can't load `%s'; this is not a valid nemubot "
|
||||
"configuration file." % filename)
|
||||
logger.error("Can't load `%s'; this is not a valid nemubot "
|
||||
"configuration file." % filename)
|
||||
|
||||
# Unexisting file, assume a name was passed, import the module!
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue