Skip to content

Instantly share code, notes, and snippets.

@edengal
Created July 19, 2019 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edengal/796d1397a3611a9aefc080d393fc2991 to your computer and use it in GitHub Desktop.
Save edengal/796d1397a3611a9aefc080d393fc2991 to your computer and use it in GitHub Desktop.
public List<String> query(String query, String timbermillParentId) throws InterruptedException {
String id = TimberLogger.start("query", timbermillParentId, LogParams.create().text("sql", query));
try {
authorized(id);
List<String> list = runSql(query);
TimberLogger.success();
return list;
} catch (Throwable t){
TimberLogger.error(t);
throw t;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment