mirror of
https://github.com/gryf/wicd.git
synced 2026-01-30 12:35:46 +01:00
experimental:
- Merge in changes from pluggablebackends.
This commit is contained in:
@@ -23,6 +23,8 @@ import sys
|
||||
import os
|
||||
import time
|
||||
|
||||
import wicd.wpath as wpath
|
||||
|
||||
class SizeError(IOError):
|
||||
pass
|
||||
|
||||
@@ -89,6 +91,8 @@ class ManagedLog(object):
|
||||
|
||||
"""
|
||||
def __init__(self, name, maxsize=360000, maxsave=3):
|
||||
if not os.path.exists(os.path.dirname(name)):
|
||||
os.makedirs(os.path.dirname(name))
|
||||
self._lf = LogFile(name, "a", maxsize)
|
||||
self.maxsave = maxsave
|
||||
|
||||
|
||||
Reference in New Issue
Block a user