kitovu-bot / kitovu

OpenHSR Connect 2
GNU General Public License v3.0
5 stars 2 forks source link

Add basic logging support #25

Closed The-Compiler closed 6 years ago

The-Compiler commented 6 years ago

See EPJ-74:

$ kitovu sync                                                           
Syncing connection moodle
Syncing subject VSS

Syncing connection skripte-server
Syncing subject Engineering-Projekt
Downloading Informatik/Fachbereich/Engineering-Projekt/EPJ/FS2018/Projektantraege/Projektantrag_kitovu.pdf
$ kitovu --loglevel debug sync
[...]
2018-05-08 07:57:16,823 [DEBUG]       kitovu.sync.syncing Checking: Informatik/Fachbereich/Engineering-Projekt/EPJ/FS2018/Projektantraege/projektantrag_hiddencomment.pdf
2018-05-08 07:57:16,827 [DEBUG]       kitovu.sync.syncing Remote digest: 597226-1519720070
2018-05-08 07:57:16,827 [DEBUG]     kitovu.sync.filecache Discovering changes for local: /home/florian/proj/kitovu/synctest/Engineering-Projekt/FS2018/Projektantraege/projektantrag_hiddencomment.pdf / remote: Informatik/Fachbereich/Engineering-Projekt/EPJ/FS2018/Projektantraege/projektantrag_hiddencomment.pdf by plugin smb
2018-05-08 07:57:16,831 [DEBUG]     kitovu.sync.filecache Comparing digests: remote 597226-1519720070, local 597226-1519720070, cached 597226-1519720070
2018-05-08 07:57:16,832 [DEBUG]       kitovu.sync.syncing No remote changes.
2018-05-08 07:57:16,832 [DEBUG]       kitovu.sync.syncing Checking: Informatik/Fachbereich/Engineering-Projekt/EPJ/FS2018/Projektantraege/Projektantrag_kitovu.pdf
2018-05-08 07:57:16,836 [DEBUG]       kitovu.sync.syncing Remote digest: 67550-1519719998
2018-05-08 07:57:16,837 [DEBUG]     kitovu.sync.filecache Discovering changes for local: /home/florian/proj/kitovu/synctest/Engineering-Projekt/FS2018/Projektantraege/Projektantrag_kitovu.pdf / remote: Informatik/Fachbereich/Engineering-Projekt/EPJ/FS2018/Projektantraege/Projektantrag_kitovu.pdf by plugin smb
2018-05-08 07:57:16,837 [DEBUG]     kitovu.sync.filecache Local path does not exist!
2018-05-08 07:57:16,837 [ INFO]       kitovu.sync.syncing Downloading Informatik/Fachbereich/Engineering-Projekt/EPJ/FS2018/Projektantraege/Projektantrag_kitovu.pdf
2018-05-08 07:57:16,838 [DEBUG]    kitovu.sync.plugin.smb Retrieving file Informatik/Fachbereich/Engineering-Projekt/EPJ/FS2018/Projektantraege/Projektantrag_kitovu.pdf
2018-05-08 07:57:16,851 [DEBUG]       kitovu.sync.syncing Local digest: 67550-1519719998
2018-05-08 07:57:16,851 [DEBUG]     kitovu.sync.filecache Modifying cached digest for /home/florian/proj/kitovu/synctest/Engineering-Projekt/FS2018/Projektantraege/Projektantrag_kitovu.pdf by <kitovu.sync.plugin.smb.SmbPlugin object at 0x7fc464abefd0>: 67550-1519719998
[...]
codecov[bot] commented 6 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@f659ff4). Click here to learn what that means. The diff coverage is 73.46%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #25   +/-   ##
=========================================
  Coverage          ?   90.43%           
=========================================
  Files             ?       32           
  Lines             ?     1349           
  Branches          ?       87           
=========================================
  Hits              ?     1220           
  Misses            ?      115           
  Partials          ?       14
Impacted Files Coverage Δ
src/kitovu/__main__.py 0% <ø> (ø)
src/kitovu/sync/filecache.py 90.9% <100%> (ø)
src/kitovu/utils.py 94.33% <100%> (ø)
src/kitovu/sync/settings.py 94.91% <100%> (ø)
src/kitovu/sync/plugin/moodle.py 34.31% <28.57%> (ø)
src/kitovu/cli.py 73.84% <37.5%> (ø)
src/kitovu/sync/plugin/smb.py 87.95% <71.42%> (ø)
src/kitovu/sync/syncing.py 93.15% <92.3%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update f659ff4...a85287d. Read the comment docs.