Skip to content
This repository has been archived by the owner on Oct 30, 2022. It is now read-only.

Commit

Permalink
Merge pull request #124 from SerpentDrago/patch-3
Browse files Browse the repository at this point in the history
Fixed Error related to logging (backport from matrix)
  • Loading branch information
drinfernoo committed Apr 19, 2021
2 parents 635f73d + b1fd2bc commit 93db31c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion addon.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.program.openwizard" name="[COLOR limegreen]Open[/COLOR]Wizard" version="1.4.8" provider-name="drinfernoo">
<addon id="plugin.program.openwizard" name="[COLOR limegreen]Open[/COLOR]Wizard" version="1.4.9" provider-name="drinfernoo">
<requires>
<import addon="xbmc.python" version="2.1.0" />
<import addon="script.module.requests" />
Expand All @@ -21,6 +21,8 @@
<reuselanguageinvoker>false</reuselanguageinvoker>
<source>https://www.github.com/drinfernoo/plugin.program.openwizard/</source>
<news>
1.4.9
- Fix Error Related to Log
1.4.8
- Fix regex for formatting tags
- Fix theme selection after build install
Expand Down
2 changes: 1 addition & 1 deletion resources/libs/common/logging.py
Expand Up @@ -83,7 +83,7 @@ def check_log():
elif CONFIG.CLEANWIZLOGBY == '1': # By Size
maxsize = CONFIG.MAXWIZSIZE[int(float(CONFIG.CLEANSIZE))]*1024
if os.path.getsize(CONFIG.WIZLOG) >= maxsize:
start = len(lines)/2
start = int(len(lines)/2)
newfile = lines[start:]
tools.write_to_file(CONFIG.WIZLOG, '\n'.join(newfile))
elif CONFIG.CLEANWIZLOGBY == '2': # By Lines
Expand Down

0 comments on commit 93db31c

Please sign in to comment.