mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 00:48:41 +00:00
The Stats plugin should not be using the old logging system.
This commit is contained in:
parent
e016b2106f
commit
bad228645c
4 changed files with 24 additions and 16 deletions
|
@ -33,11 +33,11 @@
|
||||||
# but you are not obligated to do so. If you do not wish to do so, delete
|
# but you are not obligated to do so. If you do not wish to do so, delete
|
||||||
# this exception statement from your version. If you delete this exception
|
# this exception statement from your version. If you delete this exception
|
||||||
|
|
||||||
from twisted.internet.task import LoopingCall
|
|
||||||
import time
|
import time
|
||||||
|
import logging
|
||||||
|
from twisted.internet.task import LoopingCall
|
||||||
|
|
||||||
import deluge
|
import deluge
|
||||||
from deluge.log import LOG as log
|
|
||||||
from deluge.plugins.pluginbase import CorePluginBase
|
from deluge.plugins.pluginbase import CorePluginBase
|
||||||
from deluge import component
|
from deluge import component
|
||||||
from deluge import configmanager
|
from deluge import configmanager
|
||||||
|
@ -57,6 +57,8 @@ DEFAULT_TOTALS = {
|
||||||
"stats": {}
|
"stats": {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
def get_key(config, key):
|
def get_key(config, key):
|
||||||
try:
|
try:
|
||||||
return config[key]
|
return config[key]
|
||||||
|
|
|
@ -40,9 +40,11 @@ port of old plugin by markybob.
|
||||||
import time
|
import time
|
||||||
import math
|
import math
|
||||||
import cairo
|
import cairo
|
||||||
from deluge.log import LOG as log
|
import logging
|
||||||
from deluge.ui.client import client
|
from deluge.ui.client import client
|
||||||
|
|
||||||
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
black = (0, 0, 0)
|
black = (0, 0, 0)
|
||||||
gray = (0.75, 0.75, 0.75)
|
gray = (0.75, 0.75, 0.75)
|
||||||
white = (1.0, 1.0, 1.0)
|
white = (1.0, 1.0, 1.0)
|
||||||
|
|
|
@ -37,12 +37,12 @@
|
||||||
|
|
||||||
import gtk
|
import gtk
|
||||||
import gobject
|
import gobject
|
||||||
|
import logging
|
||||||
from gtk.glade import XML
|
from gtk.glade import XML
|
||||||
|
|
||||||
import graph
|
import graph
|
||||||
import deluge
|
import deluge
|
||||||
from deluge import component
|
from deluge import component
|
||||||
from deluge.log import LOG as log
|
|
||||||
from deluge.common import fspeed
|
from deluge.common import fspeed
|
||||||
from deluge.ui.client import client
|
from deluge.ui.client import client
|
||||||
from deluge.ui.gtkui.torrentdetails import Tab
|
from deluge.ui.gtkui.torrentdetails import Tab
|
||||||
|
@ -50,6 +50,8 @@ from deluge.plugins.pluginbase import GtkPluginBase
|
||||||
|
|
||||||
import common
|
import common
|
||||||
|
|
||||||
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
DEFAULT_CONF = { 'version': 1,
|
DEFAULT_CONF = { 'version': 1,
|
||||||
'colors' :{
|
'colors' :{
|
||||||
'bandwidth_graph': {'upload_rate': str(gtk.gdk.Color("blue")),
|
'bandwidth_graph': {'upload_rate': str(gtk.gdk.Color("blue")),
|
||||||
|
|
|
@ -37,13 +37,15 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
from deluge.log import LOG as log
|
import logging
|
||||||
from deluge.ui.client import client
|
from deluge.ui.client import client
|
||||||
from deluge import component
|
from deluge import component
|
||||||
from deluge.plugins.pluginbase import WebPluginBase
|
from deluge.plugins.pluginbase import WebPluginBase
|
||||||
|
|
||||||
from common import get_resource
|
from common import get_resource
|
||||||
|
|
||||||
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
class WebUI(WebPluginBase):
|
class WebUI(WebPluginBase):
|
||||||
|
|
||||||
scripts = [get_resource("stats.js")]
|
scripts = [get_resource("stats.js")]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue