-
Notifications
You must be signed in to change notification settings - Fork 158
0.2.3 #162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
gitfs/utils/args.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should move these raven
imports inside if args.sentry_dsn:
so we do not have hard dependency on raven
module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but if you install it from ppa and built it with pex, it would pe harder to work like that
gitfs/router.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should drop socket.gethostname()
as it's a rather expensive syscall. If it's configured for raven
i think it does this automatically, or if it doesn't we should use http://raven.readthedocs.org/en/latest/usage.html#raven.base.Client.context
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that raven do it by default and if socket.gethostname
is to
expensive, we could use os.environ["HOSTNAME"]
. If we don't append it in
message and send it using context
or tags
, we still need to get the
hostname
On Wed, Nov 12, 2014 at 7:28 PM, Calin Don notifications@github.com wrote:
In gitfs/router.py:
@@ -126,7 +127,13 @@ def call(self, operation, *args):
view.class.name))
raise FuseOSError(ENOSYS)
return getattr(view, operation)(*args)
try:
return getattr(view, operation)(*args)
except FuseOSError as e:
raise e
except Exception as exception:
log.exception("[%s] A system call failed" % socket.gethostname())
We should drop socket.gethostname() as it's a rather expensive syscall.
If it's configured for raven i think it does this automatically, or if it
doesn't we should use
http://raven.readthedocs.org/en/latest/usage.html#raven.base.Client.context—
Reply to this email directly or view it on GitHub
https://github.com/PressLabs/gitfs/pull/162/files#r20234633.
Vlad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just checked. raven
and it automatically adds the server. Check http://sentry.presslabs.net/production/gitfs/group/692/ right column.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool
On Wed, Nov 12, 2014 at 7:40 PM, Calin Don notifications@github.com wrote:
In gitfs/router.py:
@@ -126,7 +127,13 @@ def call(self, operation, *args):
view.class.name))
raise FuseOSError(ENOSYS)
return getattr(view, operation)(*args)
try:
return getattr(view, operation)(*args)
except FuseOSError as e:
raise e
except Exception as exception:
log.exception("[%s] A system call failed" % socket.gethostname())
Just checked. raven and it automatically adds the server. Check
http://sentry.presslabs.net/production/gitfs/group/692/ right column.—
Reply to this email directly or view it on GitHub
https://github.com/PressLabs/gitfs/pull/162/files#r20235478.
Vlad
gitfs/worker/peasant.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also check the above comment.
Showing only the first ten definitions. View the rest on ✱ sourcegraph.com |
…nt starts with pattern
No description provided.