Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util.startup: Handle missing nparams field from debug info (not present in 5.1) | Matthew Wild | 2020-10-11 | 1 | -2/+3 |
| | |||||
* | util.startup: Include arguments in function string representation | Kim Alvefur | 2020-10-09 | 1 | -2/+8 |
| | | | | | | | Improves usability of the console when digging around the internals. No specific rationale for the function<file:line>(args) format, it looked best of the variants I tried. | ||||
* | util.startup: Retrieve less data for function string representation | Kim Alvefur | 2020-10-09 | 1 | -1/+1 |
| | | | | debug.getinfo(f) collects more info than what is needed here. | ||||
* | util.startup: Save the path used by the installer to prosody.paths | Kim Alvefur | 2020-10-07 | 1 | -0/+1 |
| | | | | | | Makes it easier for other parts of the code to use this for things, such as determining whether a certain module is from this path or from elsewhere. | ||||
* | util.startup: Fix startup failure if CFG_DATADIR is unset | Kim Alvefur | 2020-10-05 | 1 | -1/+1 |
| | | | | As is normal when running from source | ||||
* | util.startup: Re-enable installer path setup | Kim Alvefur | 2020-10-05 | 1 | -2/+2 |
| | |||||
* | util.startup: Put 'installer_plugin_path' under data directory by default | Kim Alvefur | 2020-10-05 | 1 | -1/+1 |
| | | | | | Fixes issue where it ends up creating this in $PWD, which might be ~prosody, ~you or /, depending on how it's invoked. | ||||
* | util.startup: Init util.error with defaults if none given | Matthew Wild | 2020-08-28 | 1 | -1/+1 |
| | |||||
* | util.error: Allow optional tracebacks to be injected on errors | Matthew Wild | 2020-08-28 | 1 | -0/+6 |
| | | | | This allows extra debug info to be provided for development purposes. | ||||
* | Merge 0.11->trunk | Kim Alvefur | 2020-06-23 | 1 | -1/+0 |
|\ | |||||
| * | util.startup: Remove duplicated initialization of logging (fix #1527) | Kim Alvefur | 2020-06-22 | 1 | -1/+0 |
| | | |||||
* | | util.argparse: Move exiting and error to util.startup | Kim Alvefur | 2020-06-17 | 1 | -1/+11 |
| | | | | | | | | | | | | | | | | It's not so nice to have a library that exits the entire application from under you, so this and the error reporting belongs in util.startup. The argparse code was originally in util.startup but moved out in 1196f1e8d178 but the error handling should have stayed. | ||||
* | | util.startup: Configure the GC on startup, using the config or built-in defaults | Matthew Wild | 2020-06-15 | 1 | -0/+17 |
| | | |||||
* | | util.startup: Break out command line argument parsing into util.argparse | Kim Alvefur | 2020-02-19 | 1 | -49/+5 |
| | | | | | | | | | | This will allow using it from other places such as prosodyctl sub-commands and plugins | ||||
* | | util.startup: expose current process type (prosody/prosodyctl) in the global ↵ | Matthew Wild | 2020-01-28 | 1 | -0/+2 |
| | | | | | | | | prosody object | ||||
* | | Merge 0.11->trunk | Matthew Wild | 2020-01-19 | 1 | -2/+1 |
|\| | |||||
| * | util.startup: Ensure prosody.opts exists even when no options provided | Matthew Wild | 2020-01-19 | 1 | -1/+1 |
| | | |||||
| * | util.startup: Remove accidentally-committed debugging | Matthew Wild | 2020-01-19 | 1 | -1/+0 |
| | | |||||
* | | Merge 0.11->trunk | Matthew Wild | 2020-01-19 | 1 | -37/+39 |
|\| | |||||
| * | util.startup: Fix logic to make --config work again | Matthew Wild | 2020-01-19 | 1 | -37/+39 |
| | | |||||
* | | Merge 0.11->trunk | Matthew Wild | 2020-01-19 | 1 | -6/+60 |
|\| | |||||
| * | prosody/util.startup: Switch to parse_args() for --root and --config | Matthew Wild | 2020-01-19 | 1 | -6/+6 |
| | | |||||
| * | util.startup: Add startup step for parsing command-line options | Matthew Wild | 2020-01-19 | 1 | -0/+54 |
| | | |||||
* | | util.startup: Ignore unused errno variable [luacheck] | Kim Alvefur | 2019-12-23 | 1 | -1/+1 |
| | | |||||
* | | util.startup: Disable plugin installer path creation for now (see comments) | Kim Alvefur | 2019-11-09 | 1 | -2/+4 |
| | | |||||
* | | util.startup: Split plugin installer path setup into a separate function | Kim Alvefur | 2019-11-09 | 1 | -4/+11 |
| | | |||||
* | | Merge 0.11->trunk | Kim Alvefur | 2019-11-04 | 1 | -2/+9 |
|\| | |||||
| * | util.startup: Ensure prosody.paths are absolute (see #1430) | Kim Alvefur | 2019-11-04 | 1 | -1/+7 |
| | | | | | | | | | | | | | | | | Normally these paths are injected into the installed 'prosody' executable as absolute paths, but it is possible to override at least the config path via environment variable or command line argument. This makes sure a path relative to pwd stays relative to that instead of the data directory. | ||||
| * | util.startup: Update config path (fixes #1430) | Kim Alvefur | 2019-11-03 | 1 | -1/+2 |
| | | |||||
* | | Merge mod-installer (2019 GSoC by Jo?o Duarte) | Matthew Wild | 2019-08-19 | 1 | -1/+7 |
|\ \ | |||||
| * | | util.startup: Changed the way util.paths.complement_lua_path was being accessed | Jo?o Duarte | 2019-08-16 | 1 | -1/+1 |
| | | | |||||
| * | | util.startup: Reorganized code at setup_plugindir | Jo?o Duarte | 2019-08-01 | 1 | -3/+3 |
| | | | |||||
| * | | util.startup: Now calls a function to complement lua's path/cpath | Jo?o Duarte | 2019-08-01 | 1 | -13/+2 |
| | | | |||||
| * | | util.startup: setup_plugindir now also checks package.cpath for duplicates | Jo?o Duarte | 2019-08-01 | 1 | -2/+4 |
| | | | |||||
| * | | util.startup: Directly calling lfs.currentdir instead of storing it in a ↵ | Jo?o Duarte | 2019-08-01 | 1 | -2/+1 |
| | | | | | | | | | | | | local variable | ||||
| * | | util.startup: Removed/rewrote comments at setup_plugindir | Jo?o Duarte | 2019-08-01 | 1 | -7/+2 |
| | | | |||||
| * | | util.startupt: setup_plugindir now uses lfs.mkdir to check/create directories | Jo?o Duarte | 2019-08-01 | 1 | -4/+1 |
| | | | |||||
| * | | util.startupt: I'm now using the resolve_relative_path function from ↵ | Jo?o Duarte | 2019-08-01 | 1 | -10/+2 |
| | | | | | | | | | | | | util/paths at the setup_plugindir function | ||||
| * | | util.startup: Improved how .set_plugindir updates prosody.paths.plugins, ↵ | Jo?o Duarte | 2019-07-26 | 1 | -11/+27 |
| | | | | | | | | | | | | package.path and package.cpath | ||||
| * | | util.startup: .setup_plugindir now checks if the specified directory for ↵ | Jo?o Duarte | 2019-07-26 | 1 | -4/+4 |
| | | | | | | | | | | | | custom plugins exists, and creates it if it doesn't | ||||
| * | | util.startup: The .setup_plugindir function now correctly sets a ↵ | Jo?o Duarte | 2019-07-26 | 1 | -10/+16 |
| | | | | | | | | | | | | default/specified path for custom plugins | ||||
| * | | util.startup: Removed unnecessary if clause at startup.set_plugindir | Jo?o Duarte | 2019-07-25 | 1 | -9/+7 |
| | | | |||||
| * | | util.startup: Now it also loads default or configured paths to custom plugin ↵ | Jo?o Duarte | 2019-07-24 | 1 | -0/+12 |
| | | | | | | | | | | | | directories and creates them | ||||
* | | | util.startup: Remove tostring call from logging | Kim Alvefur | 2019-07-30 | 1 | -2/+2 |
|/ / | | | | | | | Taken care of by loggingmanager now | ||||
* | | util.startup: Don't die if there are no config warnings to log (thanks buildbot) | Matthew Wild | 2019-03-20 | 1 | -2/+4 |
| | | |||||
* | | util.startup: Log configuration warnings at startup | Matthew Wild | 2019-03-20 | 1 | -0/+6 |
| | | |||||
* | | util.startup: Give function a more generic name so it can apply to all warnings | Matthew Wild | 2019-03-20 | 1 | -3/+3 |
|/ | |||||
* | util.startup: Always reload logging after config (fixes #1284) | Kim Alvefur | 2019-01-06 | 1 | -0/+3 |
| | | | | | This chancged in 6e24a69b03af likely because of confusion about the `reopen-log-files` event which was fired but never hooked. | ||||
* | util.startup: Set flag when config fully loaded | Matthew Wild | 2018-08-19 | 1 | -0/+1 |
| | |||||
* | util.startup: Add a comment marking some compat code | Kim Alvefur | 2018-07-01 | 1 | -0/+1 |
| |