Merge lp:~facundo/u1sync/fix-log-folder into lp:u1sync

Proposed by Facundo Batista
Status: Merged
Approved by: Sidnei da Silva
Approved revision: 2
Merged at revision: 3
Proposed branch: lp:~facundo/u1sync/fix-log-folder
Merge into: lp:u1sync
Diff against target: 21 lines (+2/-2)
1 file modified
u1sync/client.py (+2/-2)
To merge this branch: bzr merge lp:~facundo/u1sync/fix-log-folder
Reviewer Review Type Date Requested Status
Alejandro J. Cura (community) Approve
Review via email: mp+73661@code.launchpad.net

Commit message

Took the log folder from the correct place.

Description of the change

Took the log folder from the correct place.

This is just a name update, after changes in ubuntuone.logger.

To post a comment you must log in.
Revision history for this message
Alejandro J. Cura (alecu) wrote :

code looks good, tests pass.

review: Approve
Revision history for this message
Ubuntu One Auto Pilot (otto-pilot) wrote :

The attempt to merge lp:~facundo/u1sync/fix-log-folder into lp:u1sync failed. Below is the output from the failed tests.

Traceback (most recent call last):
  File "/usr/bin/u1trial", line 269, in <module>
    main()
  File "/usr/bin/u1trial", line 265, in main
    TestRunner(force_gc=options.force_gc).run(testpath, options)
  File "/usr/bin/u1trial", line 182, in run
    options.ignored_modules, options.ignored_paths)
  File "/usr/bin/u1trial", line 161, in _collect_tests
    module_suite = self._load_unittest(filepath)
  File "/usr/bin/u1trial", line 89, in _load_unittest
    module = __import__(modpath, None, None, [""])
  File "/var/cache/tarmac/u1sync/trunk/u1sync/tests/test_client.py", line 23, in <module>
    from u1sync import client
  File "/var/cache/tarmac/u1sync/trunk/u1sync/client.py", line 35, in <module>
    from ubuntuone.platform.xdg_base_directory import ubuntuone_log_dir
  File "/usr/lib/pymodules/python2.6/ubuntuone-client/ubuntuone/platform/__init__.py", line 10, in <module>
    from ubuntuone.platform import linux
  File "/usr/lib/pymodules/python2.6/ubuntuone-client/ubuntuone/platform/linux/__init__.py", line 63, in <module>
    from ubuntuone.platform.linux.credentials import CredentialsManagementTool
  File "/usr/lib/pymodules/python2.6/ubuntuone-client/ubuntuone/platform/linux/credentials.py", line 24, in <module>
    from ubuntu_sso.credentials import (
  File "/usr/lib/pymodules/python2.6/ubuntu_sso/credentials.py", line 50, in <module>
    from ubuntu_sso.keyring import Keyring
ImportError: No module named keyring

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'u1sync/client.py'
--- u1sync/client.py 2011-02-09 14:58:35 +0000
+++ u1sync/client.py 2011-09-01 12:57:25 +0000
@@ -32,7 +32,7 @@
3232
33from twisted.internet import reactor, defer33from twisted.internet import reactor, defer
34from twisted.internet.defer import inlineCallbacks, returnValue34from twisted.internet.defer import inlineCallbacks, returnValue
35from ubuntuone.logger import LOGFOLDER35from ubuntuone.platform.xdg_base_directory import ubuntuone_log_dir
36from ubuntuone.storageprotocol.content_hash import crc3236from ubuntuone.storageprotocol.content_hash import crc32
37from ubuntuone.storageprotocol.context import get_ssl_context37from ubuntuone.storageprotocol.context import get_ssl_context
38from u1sync.genericmerge import MergeNode38from u1sync.genericmerge import MergeNode
@@ -62,7 +62,7 @@
62 """Converts a share UUID to a form the protocol likes."""62 """Converts a share UUID to a form the protocol likes."""
63 return str(share_uuid) if share_uuid is not None else request.ROOT63 return str(share_uuid) if share_uuid is not None else request.ROOT
6464
65LOGFILENAME = os.path.join(LOGFOLDER, 'u1sync.log')65LOGFILENAME = os.path.join(ubuntuone_log_dir, 'u1sync.log')
66u1_logger = logging.getLogger("u1sync.timing.log")66u1_logger = logging.getLogger("u1sync.timing.log")
67handler = RotatingFileHandler(LOGFILENAME)67handler = RotatingFileHandler(LOGFILENAME)
68u1_logger.addHandler(handler)68u1_logger.addHandler(handler)

Subscribers

People subscribed via source and target branches