Permalink
Browse files

Log ghc-mod invocations

  • Loading branch information...
1 parent f8a2b70 commit 3fc4a8d790b59cdbc1e5fd7463d2454bf1ad3cf4 @nh2 nh2 committed Jan 13, 2013
Showing with 5 additions and 4 deletions.
  1. +5 −4 sublime_haskell_common.py
View
9 sublime_haskell_common.py
@@ -247,10 +247,11 @@ def call_ghcmod_and_wait(arg_list, filename=None):
ghc_cwd = (get_cabal_project_dir_of_file(filename) or os.path.dirname(filename)) if filename else None
try:
- exit_code, out, err = call_and_wait(
- try_attach_sandbox(['ghc-mod'] + arg_list),
- cwd=(ghc_cwd or os.getcwd())
- )
+ command = try_attach_sandbox(['ghc-mod'] + arg_list)
+
+ log('running ghc-mod: {0}'.format(command))
+
+ exit_code, out, err = call_and_wait(command, cwd=(ghc_cwd or os.getcwd()))
if exit_code != 0:
raise Exception("ghc-mod exited with status %d and stderr: %s" % (exit_code, err))

0 comments on commit 3fc4a8d

Please sign in to comment.