Commit Graph

104 Commits

Author SHA1 Message Date
Kai Sickeler 9848e97f55 Upgrade toml dependency to 0.2 2016-08-06 17:21:00 +02:00
Matthias Beyer 8412ea195f Configure coloring in logger setup 2016-08-02 11:39:01 +02:00
Matthias Beyer 8a0200a183 Make coloring optional via flag in ImagLogger 2016-08-02 11:38:38 +02:00
Matthias Beyer 6571429123 Search for imagrc in RTP and not in RTP/store 2016-07-27 19:15:50 +02:00
Matthias Beyer 3eedab5206 Add Runtime functionality to patch in-memory-configuration-file-contents on loading application 2016-07-24 19:30:04 +02:00
Matthias Beyer 6f0670003b Add default commandline argument for configuration override 2016-07-24 19:30:04 +02:00
Matthias Beyer 783462899a Add config override functionality 2016-07-24 19:30:04 +02:00
Matthias Beyer d1728a6aa3 Add error kinds for config override errors 2016-07-24 19:30:04 +02:00
Matthias Beyer 2440260abe Change default log level to Warn 2016-07-17 00:49:39 +02:00
Matthias Beyer df1523db3e Fix: hook registering should be hook-type agnostic 2016-07-16 11:39:34 +02:00
Matthias Beyer 9337a14cdd Update all version strings: 0.1.0 -> 0.2.0 2016-07-12 11:51:20 +02:00
Matthias Beyer c03fb00c20 Replace error boxing and wrapping by helper generated with libimagerror 2016-06-27 18:23:54 +02:00
Matthias Beyer bfa6f593b6 Fix: Re-writing content of String in edit_in_tmpfile() 2016-06-07 14:25:06 +02:00
Matthias Beyer 180dfbf0b1 Fix: Pass the confguration path as parameter for Configuration::new()
If there is none, fall back to the RTP.
2016-05-28 23:11:10 +02:00
Matthias Beyer d50f8b3d0d Fix: Test the RTP itself as well
This fixes the problem that the user sometimes passes the configuration
via the commandline. In this case, the "rtp" variable itself is the
configuration file path. With this fix applied, we check this value
before generating the variants and trying them.
2016-05-28 23:03:06 +02:00
Matthias Beyer e3db21b009 Use IntoError trait for less ugly code 2016-05-27 10:27:06 +02:00
Matthias Beyer 70b6a4f587 Replace configuration error code with macro generator 2016-05-27 10:21:56 +02:00
Matthias Beyer 9a92f9091f Add env_logger as fallback if IMAG_LOG_ENV is present 2016-05-24 16:43:04 +02:00
Matthias Beyer 4066ae4048 Add dep: env_logger = 0.3 2016-05-24 16:42:32 +02:00
Matthias Beyer b4b3a0ede8 Only warn if there is no config file 2016-05-23 15:12:57 +02:00
Matthias Beyer 1dbfb7cf28 libimagrt: Replace error module imports with macro helper 2016-05-19 18:22:03 +02:00
Matthias Beyer f88e3e629b Add runtime setup helper function 2016-05-18 22:33:01 +02:00
Matthias Beyer ee32a85ff3 libimagrt: Change dependency from libimagutil -> libimagerror 2016-05-18 18:31:54 +02:00
Matthias Beyer f27b114f85 libimagrt: Replace error code with code generator macro 2016-05-17 14:01:58 +02:00
Matthias Beyer bd6c8ff3ff Merge pull request #412 from matthiasbeyer/libimagrt/color-log-output
Libimagrt/color log output
2016-05-17 00:23:12 +02:00
Matthias Beyer 376a23b8ce Color log output
Color as follows:

    * Debug output -> Cyan
    * Warning, errors -> Red, with the type (WARN; ERROR) red blinking
    * All other output yellow.
2016-05-15 17:38:02 +02:00
Matthias Beyer 344296487d Add dependency: ansi_term = 0.7 2016-05-15 17:37:56 +02:00
Matthias Beyer 7b855f82f3 Remove unwrap() calling by matching 2016-05-15 14:00:24 +02:00
Andre Bogus 981707c9c9 more style adaptations
again following clippy
2016-05-13 22:27:53 +02:00
Matthias Beyer 9f528fb929 Merge pull request #390 from matthiasbeyer/update-log
Update log
2016-05-11 12:35:27 +02:00
Matthias Beyer acfff70498 Update log: 0.3.* -> 0.3 2016-05-10 17:54:47 +02:00
Matthias Beyer 987605322f Add missing "return None" in file opening error case 2016-05-09 17:12:55 +02:00
Matthias Beyer e0876bb751 Make libimagrt::runtime::Runtime derive Debug 2016-04-20 21:46:02 +02:00
Matthias Beyer 3631817827 libimagrt: Replace .err().unwrap() with .unwrap_err() 2016-04-20 21:45:58 +02:00
Matthias Beyer 52134e6095 Rename: kind() to err_type() 2016-04-19 19:47:23 +02:00
Matthias Beyer e040d0d0c6 Merge pull request #361 from matthiasbeyer/libimagrt/zero-warnings
Libimagrt/zero warnings
2016-04-17 21:10:59 +02:00
Matthias Beyer 3bb4528060 Enable lints 2016-04-17 20:48:22 +02:00
Matthias Beyer bd4c89af3b Use unused results 2016-04-17 20:48:17 +02:00
Matthias Beyer 4641236c82 Annotate function with allow(dead_code) 2016-04-17 20:48:03 +02:00
Matthias Beyer 54dd7c0d7e Remove unused enum variant 2016-04-17 20:47:49 +02:00
Matthias Beyer 007d664a51 libimagrt: Update itertools 2016-04-17 15:50:32 +02:00
Matthias Beyer 3e9bf44127 Merge pull request #322 from matthiasbeyer/libimagrt/debug-log-line-and-file
logger: Print file and line on debug printing
2016-04-06 16:58:22 +02:00
Matthias Beyer b305b3c693 Implement Edit for String 2016-04-06 14:40:54 +02:00
Matthias Beyer b30cde474d Merge pull request #319 from matthiasbeyer/libimagrt/std-hook-register-error-only-debugoutput
Libimagrt/std hook register error only debugoutput
2016-04-06 11:14:44 +02:00
Matthias Beyer f28bfadf8d logger: Print file and line on debug printing 2016-04-05 17:53:09 +02:00
Matthias Beyer 9a094fcd94 Partially revert 7f1a671
Removed the logger initialization, which was not caught by review
somehow.

This patch re-adds the appropriate lines.
2016-04-05 17:48:21 +02:00
Matthias Beyer 4f391d0e04 Spit out the traceback for hook registration errors only in debug mode
This patch is added because this error occours only if there is no
configuration file with the appropriate settings available.

There will still be a warning about hook registration failed, but the
traceback will only be visitible in `--debug` mode.
2016-04-05 16:50:17 +02:00
Matthias Beyer ee61d079bd Merge pull request #295 from matthiasbeyer/libimagrt/config-for-everyone
Libimagrt/config for everyone
2016-03-26 21:29:40 +01:00
Matthias Beyer 1bcc05a855 Add Runtime::config() 2016-03-26 20:48:32 +01:00
Matthias Beyer 86929c819c impl Deref for Configuration 2016-03-26 20:48:28 +01:00