Skip to content

Commit

Permalink
auto initialize s3 on import
Browse files Browse the repository at this point in the history
  • Loading branch information
kszucs committed Sep 24, 2019
1 parent 88e0c9f commit 2be25ce
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion cpp/src/arrow/filesystem/s3fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,15 @@ class ARROW_EXPORT S3FileSystem : public FileSystem {
std::unique_ptr<Impl> impl_;
};

enum class S3LogLevel : int8_t { Off, Fatal, Error, Warn, Info, Debug, Trace };
enum class ARROW_EXPORT S3LogLevel : int8_t {
Off,
Fatal,
Error,
Warn,
Info,
Debug,
Trace
};

struct ARROW_EXPORT S3GlobalOptions {
S3LogLevel log_level;
Expand Down
2 changes: 1 addition & 1 deletion python/pyarrow/fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
except ImportError:
pass
else:
pass # initialize_s3?
initialize_s3()

0 comments on commit 2be25ce

Please sign in to comment.